Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

some Q AND A We can change the order of precedence in JavaScript using parenthes

ID: 3877689 • Letter: S

Question

some Q AND A

We can change the order of precedence in JavaScript using

parenthesis

curly braces

commas

semi-colons

WHICH ONE

After the statement var x = 10 % 2, x will equal

0

1

2


WHICH ONE

All JavaScript identifiers are case sensitive.

True

False

WHICH ONE

JavaScript variables are declared using the keyword

define

var

set


WHICH ONE

JavaScript literals are

fixed values

variable values

changing values

loosely typed va

You can place a JavaScript function where?

The body element of an HTML document

The head element of an HTML document

An external file

All of the above

WHICH ONE

The + operator when used with two string operands means

arithmetic addition

string interpolation

string concatenation

neither, it will confuse the compiler

WHICH ONE

To include JavaScript in an HTML document, you can place JavaScript code into a(n) ______ element.

src

script

javascript

external

WHICH ONE

Typically statements in JavaScript end with

dot

exclamation

semi-colon

curly brace

WHICH ONE

When a variable is declared but no value has been assigned, it has a value of

nil

nothing

undefined

undeclared

WHICH ONE

In order to display an popup alert style message using JavaScript, use

innerHTML

document.write

window.alert

window.showDialog

WHIC

JavaScript types are dynamic, which means

We can store multiple values in a single variable

A variable can be re-assigned several times

A variable can be sent too and from a function call

A variable can be used to store different data types

WHICH ONE

H ONE

riables

parenthesis

curly braces

commas

semi-colons

WHICH ONE

After the statement var x = 10 % 2, x will equal

0

1

2


WHICH ONE

All JavaScript identifiers are case sensitive.

True

False

WHICH ONE

JavaScript variables are declared using the keyword

define

var

set


WHICH ONE

JavaScript literals are

fixed values

variable values

changing values

loosely typed va

You can place a JavaScript function where?

The body element of an HTML document

The head element of an HTML document

An external file

All of the above

WHICH ONE

The + operator when used with two string operands means

arithmetic addition

string interpolation

string concatenation

neither, it will confuse the compiler

WHICH ONE

To include JavaScript in an HTML document, you can place JavaScript code into a(n) ______ element.

src

script

javascript

external

WHICH ONE

Typically statements in JavaScript end with

dot

exclamation

semi-colon

curly brace

WHICH ONE

When a variable is declared but no value has been assigned, it has a value of

nil

nothing

undefined

undeclared

WHICH ONE

In order to display an popup alert style message using JavaScript, use

innerHTML

document.write

window.alert

window.showDialog

WHIC

JavaScript types are dynamic, which means

We can store multiple values in a single variable

A variable can be re-assigned several times

A variable can be sent too and from a function call

A variable can be used to store different data types

WHICH ONE

H ONE

riables

Explanation / Answer

Q) We can change the order of precedence in JavaScript using

A) Parenthesis (expressions in parenthesis are the one will be executed first)

Q) After the statement var x = 10 % 2, x will equal

A) 0 (Remainder of 10 divided by 2 is 0)

Q)JavaScript variables are declared using the keyword

A) var

Q) JavaScript literals are

A) fixed values. (in java script there are two values fixed and variables. Fixed values are called literals and varaible values are called variables)

Q)The + operator when used with two string operands means

A) String concatenation.

Q) To include JavaScript in an HTML document, you can place JavaScript code into a(n) ______ element

A) script (java script code will be written in script tags)

Q) Typically statements in JavaScript end with

A) semicolon

Q) When a variable is declared but no value has been assigned, it has a value of

A) nothing

Q)In order to display an popup alert style message using JavaScript, use

A) window.alert

Q) JavaScript types are dynamic, which means

A) A variable can be used to store different data types