JavaScript syntax and operators Flashcards

1
Q

JavaScript is a type of Java programming. (T/F)

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is False about JavaScript?
JavaScript is statically typed.
JavaScript is dynamically typed.
You pass functions as arguments in JavaScript.
JavaScript is weakly typed.

A

JavaScript is statically typed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In JavaScript, the let keyword, allows you to create a variable with block scope, while the var keyword ONLY allows you to create function scope. (T/F)

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following is FALSE about declarations, expressions, and statements?
Declarations are constructs that introduce identifiers
Expressions are constructs that stand for values,
Expressions must print something to the screen
Statements are constructs that perform basic actions or control the execution of the program

A

Expressions must print something to the screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following is NOT a JavaScript primitive data type?
undefined
null
int
BigInt

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly