Basic JavaScript

Quiz
•
Professional Development
•
Professional Development
•
Hard
Daniel Adesoji
Used 14+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a variable in JavaScript?
variable = 10;
const variable = 10;
variable := 10;
variable == 10;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression: 5 + "5";
10
"55"
Nan
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to display a message in the browser's console
console.print()
log()
print()
console.log()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create a function in JavaScript?
function = myFunction() {}
function myFunction() {}
let myFunction() {}
function myFunction: {}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
10
5
undefined
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to create an array in JavaScript?
array = [1, 2, 3];
array(1, 2, 3);
array = {1, 2, 3};
array = (1, 2, 3)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression true && false
true
false
undefined
Error
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
1_Java Fundamentals_Array

Quiz
•
Professional Development
20 questions
ventinove_dieci

Quiz
•
KG - Professional Dev...
20 questions
ICETREES - Quiz on Scratch, Construct, Stencyl

Quiz
•
2nd Grade - Professio...
15 questions
Class 6 Review

Quiz
•
Professional Development
10 questions
React Basics Quiz

Quiz
•
Professional Development
10 questions
JavaScript 小測驗

Quiz
•
Professional Development
20 questions
M2 R5 MCQ (Test 2)

Quiz
•
Professional Development
20 questions
Final Exam-SL2

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade