JavaScript Basics

JavaScript Basics

Professional Development

15 Qs

quiz-placeholder

Similar activities

smart teacher for TK ABA 25 Wage

smart teacher for TK ABA 25 Wage

Professional Development

15 Qs

Special quiz

Special quiz

Professional Development

20 Qs

No PED I Health

No PED I Health

Professional Development

10 Qs

GSheet Quiz

GSheet Quiz

10th Grade - Professional Development

20 Qs

ADAB (MENZIARAHI ORANG TUA)

ADAB (MENZIARAHI ORANG TUA)

Professional Development

15 Qs

The Loud House

The Loud House

Professional Development

11 Qs

Intro 7 Writing Exam

Intro 7 Writing Exam

Professional Development

20 Qs

DAA Lab Quiz

DAA Lab Quiz

Professional Development

10 Qs

JavaScript Basics

JavaScript Basics

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Created by

Drake Harrington

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to output "Hello World" in JavaScript?

`print("Hello World")`

`console.log("Hello World")`

`echo "Hello World"`

`System.out.println("Hello World")`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a JavaScript data type?

`string`

`integer`

`character`

`decimal`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a function in JavaScript?

`function myFunction()`

`def myFunction()`

`create myFunction()`

`function:myFunction()`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you call a function named `myFunction` in JavaScript?

`call myFunction()`

`myFunction()`

`call function myFunction()`

`execute myFunction()`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a variable in JavaScript?

`var myVar;`

`variable myVar;`

`v myVar;`

`declare myVar;`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for comments in JavaScript?

`//`

`#`

`/* */`

``

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to write an array in JavaScript?

`var colors = "red", "green", "blue";`

`var colors = ["red", "green", "blue"];`

`var colors = (1:"red", 2:"green", 3:"blue");`

`var colors = {"red", "green", "blue"};`

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?