Search Header Logo

Coding 101- JS variables

Authored by Mostafa Hazareh

Education

Professional Development

Used 11+ times

Coding 101- JS variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Inside which HTML element do we put the JavaScript?

<js>

<scripting>

<javascript>

<script>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is the correct place to insert JavaScript?

The <meta> section

The <body> section

The <div> section

The <title> section

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for referring to an external script called "script.js"?

<script href="script.js">

<script name="script.js">

<script src="script.js">

<script> script.js </script>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Create a variable called price, assign the value 500 to it.

let price = 500;

let price: 500;

let price = "500";

let price : 500;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is not correct?

let color = "blue";

const color = "blue"

const color = #0000FF;

let color = "#0000FF"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Create a variable called carName and assign the value volvo to it.

let carName: "volvo";

let carName = "volvo";

let carname = volvo;

let carname : "volvo";

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?