JavaScript Functions Quiz

JavaScript Functions Quiz

Professional Development

30 Qs

quiz-placeholder

Similar activities

IT Systems and Tools Quiz

IT Systems and Tools Quiz

Professional Development

35 Qs

cryptography

cryptography

Professional Development

25 Qs

Questionário: Programação Front-End em JavaScript

Questionário: Programação Front-End em JavaScript

Professional Development

25 Qs

ICT Training MCQ-2082

ICT Training MCQ-2082

Professional Development

25 Qs

Tech+ FC0-U71 TTT Session Outline Quiz

Tech+ FC0-U71 TTT Session Outline Quiz

Professional Development

27 Qs

SMR 1

SMR 1

Professional Development

31 Qs

AWS Services and Commands Quiz

AWS Services and Commands Quiz

Professional Development

33 Qs

Tech Verse Quiz

Tech Verse Quiz

Professional Development

25 Qs

JavaScript Functions Quiz

JavaScript Functions Quiz

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

Dheepan G

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a function in JavaScript?

define

func

function

method

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following defines a function expression?

function greet() {}

const greet = function() {};

function = greet() {};

let greet = () => {}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function type is not hoisted in JavaScript?

Function declaration

Function expression

Arrow function

Both B and C

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code print?

console.log(square(4));

const square = n => n * n;

16

Error

undefined

NaN

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Arrow functions were introduced in which version of JavaScript?

ES5

ES6

ES7

ES2019

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for an arrow function that adds two numbers?

(a, b) => a + b

a, b => { return a + b }

a, b -> a + b

=> (a + b)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of this function?

Hello

Hello undefined

Hello Guest

Error

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?