Basic JavaScript

Quiz
•
Professional Development
•
Professional Development
•
Hard
Daniel Adesoji
Used 12+ 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
15 questions
Class 6 Review

Quiz
•
Professional Development
10 questions
Nodejs: Templating with EJS

Quiz
•
Professional Development
10 questions
React Basics Quiz

Quiz
•
Professional Development
10 questions
JavaScript 小測驗

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

Quiz
•
Professional Development
11 questions
DEWE-03_RA 1.1_Tema A

Quiz
•
Professional Development
10 questions
Control Flow

Quiz
•
Professional Development
10 questions
Data Types and Variables

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade