JavaScript Basics Quiz

JavaScript Basics Quiz

10th Grade

69 Qs

quiz-placeholder

Similar activities

HTML & CSS Certification Review

HTML & CSS Certification Review

9th - 12th Grade

71 Qs

HTML

HTML

9th - 12th Grade

65 Qs

LATIHAN UAS Kelas 10 PPLG

LATIHAN UAS Kelas 10 PPLG

10th Grade

70 Qs

Mr Browns Christmas Computer Science Quiz!

Mr Browns Christmas Computer Science Quiz!

9th - 12th Grade

69 Qs

Visual Basic

Visual Basic

9th Grade - University

69 Qs

flowchart and algorithm

flowchart and algorithm

9th - 12th Grade

66 Qs

SOAL LATIHAN KELAS 8

SOAL LATIHAN KELAS 8

8th Grade - University

72 Qs

Computer science Study Guide

Computer science Study Guide

9th - 12th Grade

68 Qs

JavaScript Basics Quiz

JavaScript Basics Quiz

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Lamia Saieed

Used 22+ times

FREE Resource

69 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to create a variable in JavaScript?

define

let

var

make

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which code correctly assigns the value 5 to the variable score?

score = let 5;

var score = 5;

set score = 5;

score <- 5;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which block allows a user to type input in a Design tab element?

label

dropdown

text input

button

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a variable in JavaScript?

create variable x = 5;

int x = 5;

var x = 5;

x := 5;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to store a number or string in JavaScript?

define

function

var

input

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of setText(id, text)?

Stores text in a variable

Gets text from the screen

Sets text of a UI element

Deletes a text input

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which event type is used to detect a button click in onEvent()?

hover

input

submit

click

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?