Javascript Basics
Quiz
•
Education
•
Professional Development
•
Practice Problem
•
Medium
tiya reba
Used 36+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid data type in JavaScript?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
UiPath Quiz
Quiz
•
Professional Development
10 questions
Supply PKT Week 1 Apr'23
Quiz
•
Professional Development
15 questions
Eines Google
Quiz
•
5th Grade - Professio...
10 questions
Weekly Contest #2 - TechXNinjas
Quiz
•
Professional Development
10 questions
Test Automation: A Challenge
Quiz
•
Professional Development
10 questions
Basic JavaScript (Henry)
Quiz
•
Professional Development
10 questions
React Native
Quiz
•
Professional Development
15 questions
Training ISO 14001
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
