JavaScript Basics Quiz

JavaScript Basics Quiz

10th Grade

69 Qs

quiz-placeholder

Similar activities

cyberinternet

cyberinternet

10th Grade

67 Qs

LATIHAN AAS INFORMATIKA KELAS X

LATIHAN AAS INFORMATIKA KELAS X

10th Grade

70 Qs

ôn tập 10  lần 1

ôn tập 10 lần 1

10th Grade

70 Qs

Intro to Technology Software Pop Quiz

Intro to Technology Software Pop Quiz

9th - 12th Grade

70 Qs

GUI DAN CLI

GUI DAN CLI

KG - University

70 Qs

WJEC 1.4 Organisation of Data

WJEC 1.4 Organisation of Data

10th - 11th Grade

70 Qs

Review Materi PAS 1 TIK  Gr6

Review Materi PAS 1 TIK Gr6

6th Grade - University

65 Qs

Cisco - ITN7 - Chapter 8-10 Review

Cisco - ITN7 - Chapter 8-10 Review

9th Grade - University

71 Qs

JavaScript Basics Quiz

JavaScript Basics Quiz

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Lamia Saieed

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?