Javascript Basic

Javascript Basic

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

CSP Unit 13 Practice Test

CSP Unit 13 Practice Test

9th - 12th Grade

15 Qs

UNIT 3- DATA COMMUNICATION

UNIT 3- DATA COMMUNICATION

12th Grade

20 Qs

PTS TIK Kls 9

PTS TIK Kls 9

9th Grade

15 Qs

Pretest

Pretest

10th Grade

20 Qs

History of Computers

History of Computers

6th - 12th Grade

15 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Y10M2A2 - Selection

Y10M2A2 - Selection

6th - 10th Grade

15 Qs

Traffic Light Project Quiz

Traffic Light Project Quiz

9th Grade

17 Qs

Javascript Basic

Javascript Basic

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

iqbal yunanto

Used 33+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a JavaScript variable?

A container that holds a value

A function that performs a task

A way to add styles to a website

A type of data

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

How do you write a JavaScript string?

"Hello World!"

Hello World!

'Hello World!'

`Hello World!`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between = and == in JavaScript?

= assigns a value to a variable and == compares values

= compares values and == assigns a value to a variable

= and == are the same thing

= assigns a value to a variable and == assigns a value to a variable

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a JavaScript function?

create function myFunction() {}

new function myFunction() {}

myFunction() {}

function myFunction() {}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a JavaScript alert?

alert = "Hello World!";

alert {Hello World!};

alert("Hello World!");

alert "Hello World!";

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How do you write a JavaScript comment?

# This is a comment

// This is a comment

/* This is a comment */

-- This is a comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you change the background color of an HTML element using JavaScript?

element.color = "red";

element.background = "red";

element.style.backgroundColor = "red";

element.setBackground("red");

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?