Basic JavaScript

Quiz
•
Professional Development
•
Professional Development
•
Hard
Daniel Adesoji
Used 15+ 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
13 questions
Java_ExceptionHandling

Quiz
•
Professional Development
10 questions
Data Types and Variables

Quiz
•
Professional Development
10 questions
Workshop Vue.js Node Stytch

Quiz
•
Professional Development
10 questions
Control Flow

Quiz
•
Professional Development
13 questions
Quiz sobre Flash Sales E-commerce con Bolt

Quiz
•
Professional Development
10 questions
PreTrainingClassesObjectsMethods

Quiz
•
Professional Development
15 questions
Quiz BAB 4-5 CC-43

Quiz
•
Professional Development
10 questions
TDX21 Quiz

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade