What is the correct way to declare a variable in JavaScript?

TLEQ3 MODULE 1-5

Quiz
•
Instructional Technology
•
10th Grade
•
Hard
Irish Flores
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
var MyVariable = 5;
variable myVariable = 5;
let myVariable = 5;
const myVariable = 5;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code: console.log(type of null)
"undefined"
"null"
"boolen"
"object"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create a function in JavaScript?
function myFuntion{}
my Function = function(){}
function() myFunction{}
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the keyword "this" in JavaScripts
It refers to the current object
It refers to the previous object
It refers to the next object
It has no specific purpose
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in JavaScript?
Boolen
String
Object
Number
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to output text to the console in Javascript?
console.log();
document.write(),
alert();
print();
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following Javascript code?
10
5
undefined
Reference Error
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
TLE Q3 MODULE 6

Quiz
•
9th - 12th Grade
10 questions
TLEQ3M6-G15

Quiz
•
10th Grade
15 questions
Random, Parse and String Review

Quiz
•
10th Grade
14 questions
Programación y Variables en JS

Quiz
•
10th Grade
7 questions
Examen JavaScript

Quiz
•
10th Grade
10 questions
Tle Ict Q3

Quiz
•
9th - 12th Grade
10 questions
Examen Parcial 5to Admo

Quiz
•
9th - 12th Grade
10 questions
TLE 10 MABINI SHANE

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University