
JavaScript Functions Quiz
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Medium
Dheepan G
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
30 questions
Python Programming Quiz 1
Quiz
•
Professional Development
27 questions
IoT and Security Concepts Quiz
Quiz
•
Professional Development
30 questions
Azure Fundamentals and Autopilot Quiz
Quiz
•
Professional Development
30 questions
Computer Networks & Cybersecurity Quiz
Quiz
•
Professional Development
25 questions
ALTSCHOOL QUIZ 13/9/25
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
