JavaScript Basics

JavaScript Basics

Professional Development

15 Qs

quiz-placeholder

Similar activities

IAMI 48th ANNIVERASARY

IAMI 48th ANNIVERASARY

Professional Development

10 Qs

E6F Unit 5 - An Interim Solution

E6F Unit 5 - An Interim Solution

Professional Development

10 Qs

Grammar WH- Questions and Responses

Grammar WH- Questions and Responses

KG - Professional Development

15 Qs

Forum Kabag Kanwil 1

Forum Kabag Kanwil 1

Professional Development

15 Qs

FORUM SHARING CIP HOLDING 2023 - CLOSING

FORUM SHARING CIP HOLDING 2023 - CLOSING

Professional Development

10 Qs

GEN ANA 1 LAB ACTIVITY 2024

GEN ANA 1 LAB ACTIVITY 2024

University - Professional Development

20 Qs

Japanese Adjectives

Japanese Adjectives

Professional Development

12 Qs

PAST vs PRESENT PERFECT (Simple and Continuous)

PAST vs PRESENT PERFECT (Simple and Continuous)

5th Grade - Professional Development

20 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?