js basics

js basics

4th Grade - University

18 Qs

quiz-placeholder

Similar activities

TIN 12_BÀI 11

TIN 12_BÀI 11

12th Grade

20 Qs

Ulangan harian 1 Algoritma dan Pemrograman

Ulangan harian 1 Algoritma dan Pemrograman

12th Grade - University

13 Qs

Latihan Jaringan Dasar PSAS

Latihan Jaringan Dasar PSAS

10th Grade

20 Qs

bài 24 chèn biểu tượng

bài 24 chèn biểu tượng

4th Grade

13 Qs

2561-1-ระบบสื่อสารสำหรับเครือข่ายคอมพิวเตอร์

2561-1-ระบบสื่อสารสำหรับเครือข่ายคอมพิวเตอร์

12th Grade

20 Qs

PTS TIK Kelas 9 Semester Ganjil

PTS TIK Kelas 9 Semester Ganjil

9th Grade

20 Qs

ULANGAN HARIAN TIK 6.7

ULANGAN HARIAN TIK 6.7

7th Grade

20 Qs

Мотылек

Мотылек

6th - 8th Grade

14 Qs

js basics

js basics

Assessment

Quiz

Computers

4th Grade - University

Practice Problem

Medium

Created by

Amany Ibrahim

Used 42+ times

FREE Resource

AI

Enhance your content in a minute

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

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following symbols is used for JavaScript comments?

//

\\

*/ */

<!-- -->

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of variable is var typeOfApples="Fuji"

numeric

boolen

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do I declare a new variable?

var newVariable = 5

Variable int = new Variable()

var 5 = myVariable

int var = 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What surrounds an if/else statement?

Quotations " "

Curly Brackets { }

Parenthesis ( )

Square Brackets []

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What surrounds a string or words?

Quotations " "

Curly Brackets { }

Parenthesis ( )

Square Brackets []

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use if/else statements in JavaScript?

To repeat something for a fixed number of times

To either do something if a condition is true or do something else

To break out of some block of code

To repeat something while a condition is true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indicates the beginning and the end of a JavaScript section.

<html> </html>

<style> </style>

<article> </article>

<script> </script>

Create a free account and access millions of resources

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?