Javascript Basics

Quiz
•
Education
•
Professional Development
•
Medium
tiya reba
Used 35+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Supply PKT-Week 3-Jan '23

Quiz
•
Professional Development
10 questions
Berbagi Hasil Pengimbasan Pembelajaran Mendalam

Quiz
•
Professional Development
10 questions
Invigilating Checkpoints and IGCSE May-June 2022

Quiz
•
Professional Development
15 questions
HSK1 ( 1-10)

Quiz
•
Professional Development
8 questions
HTML-Lección

Quiz
•
Professional Development
10 questions
Quiz Dikjut PAUD - TUMBANG

Quiz
•
Professional Development
10 questions
Java Strings

Quiz
•
1st Grade - Professio...
10 questions
SLA Industrial Visit At Substation 133KV/33KV

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Education
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...