Search Header Logo

JavaScript Functions and Variables

Authored by Vincent Maxwell

Computers

8th Grade

Used 7+ times

JavaScript Functions and Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you correctly declare a string variable?

let name = "Test"

let name : "Test"

let known = Name

let known = `Test`

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What do you call the extra data passed to this function?

tiles.loadMap(tilemap`mainmap`)

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the difference between properties and functions in JavaScript?

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which types of data can a variable NOT be?

Array

String

Integer

Function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will console.log print on the screen?

let number = 10;
number = number + 5;
console.log(number);

10

105

15

5

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?