Quiz till grupp 3

A vibrant illustration depicting various JavaScript concepts, including variables, data types, fun<wbr>ctions, and code snippets, all in a playful stylized manner.

JavaScript Fundamentals Quiz

Test your knowledge of JavaScript with this engaging quiz designed for Group 3 learners. Challenge yourself with questions that cover various aspects of JavaScript, from data types to loops and functions.

Features:

  • Multiple choice questions
  • Instant feedback on your answers
  • Learn while you play!
15 Questions4 MinutesCreated by CodingTree25
What's the output? console.log(typeof NaN);
NaN
Number
Null
Undefined
What will be the result of console.log(typeof null); ?
Object
Undefined
False
It will crash the program
What's the output? console.log("11" - 1);
1
111
110
10
Which data type is missing from the following list? boolean, string, null, number, bigint and symbol.
Tinyint
Undefined
Bit
Varchar
If ([] == false) { console.log(true) } else { console.log(false) } What will be logged in the console?
True
False
If ([]) { console.log(true) } else { console.log(false) } What will be logged in the console?
True
False
Function banana() { let fruit = "banana" function apple() { fruit = "apple" } function printFruit() { console.log(fruit) } return [apple, printFruit] } const [apple, printfruit] = banana() apple() printfruit() What will be logged in the console?
Banana
Apple
Undefined
It will crash the program
Which method is called automatically when an object is initialized?
Create()
New()
Constructor()
Init()
Which statement is used to skip iteration of the loop?
Break
Pass
Skip
Continue
What's the output? console.log(1==true);
True
False
What's the output? console.log(1===true);
True
False
What block must be present after a try-block?
Then
Catch
Finally
Fail
Consider the following recursive function. If we pass the string "Hello World" to it, what gets logged? Const myFunc = str => { if (str.length > 1) { return myFunc(str.slice(1)); } return str; }; console.log(myFunc('Hello World'));
H
W
O
D
How do you add a variable to a template literal?
${variable}
#variable
{variable}
#{variable}
Which of the following methods removes the first element from an array and returns that element?
Pop()
Get()
Last()
Shift()
{"name":"Quiz till grupp 3", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of JavaScript with this engaging quiz designed for Group 3 learners. Challenge yourself with questions that cover various aspects of JavaScript, from data types to loops and functions.Features:Multiple choice questionsInstant feedback on your answersLearn while you play!","img":"https:/images/course1.png"}
Powered by: Quiz Maker