Which of the following is NOT a valid data type in JavaScript?
Javascript Basics

Quiz
•
Education
•
Professional Development
•
Medium
tiya reba
Used 32+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
let
var
float
const
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to write a comment in JavaScript?
<!-- This is a comment -->
// This is a comment
/* This is a comment */
This is a comment
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are creating a web application for a dog walking business. In the code, you want to check if a dog is considered a puppy (less than 1 year old) to determine the walk price. Which if statement would work for this?
if (dogAge > 1) { // set puppy price }
if (dogAge < 1) { // set puppy price }
if (dogAge <= 365) { // set puppy price }
if (dogAge < 1) { // set puppy price }}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the NaN value represent in JavaScript?
Not a Number
Null
No Arguments
Negative Nymber
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access the length of an array in JavaScript?
array.length()
length(array)
array.length
lengthOf(array)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the return statement do in a JavaScript function?
It terminates the function execution.
It returns a value from the function.
It defines a new function.
It creates a loop.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in JavaScript
function = climbUp();
fun = "climbUp";
function climbUp();
fun = (climbUp());
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
java

Quiz
•
University - Professi...
10 questions
GFG Quiz

Quiz
•
11th Grade - Professi...
10 questions
CodeMonkey Platform Management & Resources

Quiz
•
Professional Development
10 questions
UJIAN KEHIDUPAN 4 - ANTONIM

Quiz
•
Professional Development
14 questions
Pensamento computacional

Quiz
•
2nd Grade - Professio...
15 questions
Excel Quiz

Quiz
•
Professional Development
6 questions
Coding 101- JS variables

Quiz
•
Professional Development
10 questions
RCP Via QUIZZIZ | JavaScript

Quiz
•
Professional Development
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