Javascript Basics

Javascript Basics

Professional Development

10 Qs

quiz-placeholder

Similar activities

Social Learning Theory

Social Learning Theory

Professional Development

10 Qs

Labour and Fetal Asphyxia

Labour and Fetal Asphyxia

Professional Development

10 Qs

Teoría Soporte Técnico & LDI

Teoría Soporte Técnico & LDI

Professional Development

14 Qs

General Financial Awareness

General Financial Awareness

Professional Development

15 Qs

Prosesdure Pengendalian Proses Produksi for Prod

Prosesdure Pengendalian Proses Produksi for Prod

Professional Development

15 Qs

Bab  1 :Rekabentuk mekatronik

Bab 1 :Rekabentuk mekatronik

1st Grade - Professional Development

15 Qs

Sylvan Day 2 Prep Review- Script Overview

Sylvan Day 2 Prep Review- Script Overview

Professional Development

10 Qs

Supply Week 4 PKT

Supply Week 4 PKT

Professional Development

10 Qs

Javascript Basics

Javascript Basics

Assessment

Quiz

Education

Professional Development

Practice Problem

Medium

Created by

tiya reba

Used 38+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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());

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?