JavaScript Basics

JavaScript Basics

Assessment

Flashcard

Computers

5th Grade

Practice Problem

Hard

Created by

Hala Ahmed

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Where are JavaScript statements written?

Back

JavaScript statements are written within HTML tags.

2.

FLASHCARD QUESTION

Front

Is JavaScript case sensitive?

Back

Yes, JavaScript is case sensitive.

3.

FLASHCARD QUESTION

Front

What does the alert() statement do?

Back

The alert() statement displays a message inside a dialogue box.

4.

FLASHCARD QUESTION

Front

What is the purpose of the document.write() statement?

Back

The document.write() statement is used to display texts within the webpage content.

5.

FLASHCARD QUESTION

Front

When are JavaScript statements executed automatically?

Back

JavaScript statements are executed automatically when the webpage is opened.

6.

FLASHCARD QUESTION

Front

What is a function in JavaScript?

Back

A function is a group of JavaScript statements that will be executed when called.

7.

FLASHCARD QUESTION

Front

How do you create a function in JavaScript?

Back

Write the word 'function' followed by a suitable name and the code between curly brackets.

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?