
JavaScript Functions Quiz
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
32 questions
pengantar Web Page Structure
Quiz
•
Professional Development
25 questions
JS-QUIZ
Quiz
•
Professional Development
28 questions
CLF-C02 - Sim. 28 Questões Semana 3 - AWS Cloud Pratiticioner
Quiz
•
Professional Development
25 questions
AWS DVA-C02 Quiz by CAAI
Quiz
•
Professional Development
25 questions
CCNA Practice Test
Quiz
•
Professional Development
25 questions
Google Workspace Quiz
Quiz
•
Professional Development
31 questions
DP-300 Full MCQ Set
Quiz
•
Professional Development
30 questions
Understanding NAT Concepts
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
