NEW
Font size
WorksheetsPre-Test: JavaScript Fundamentals (Part 1)
Total questions: 30
Worksheet time: 10mins
It contains JavaScript code which is automatically executed when the browser processes the tag.
<html> tag
<script> tag
<head> tag
none of the above
Scripts that are inside the HTML code.
Internal Scripts
External Scripts
Absolute Scripts
Relative Scripts
The script is from the current page folder.
Internal Scripts
External Scripts
Absolute Scripts
Relative Scripts
Syntax constructs and commands that perform actions.
Semicolon
Scripts
Statements
Comments
Use as separators for each statements; may be omitted in most cases when a line break exists.
Semicolon
Scripts
Statements
Comments
Doesn’t affect the execution of the program because the engine simply ignores them.
Semicolon
Scripts
Statements
Comments
A type of comment that starts with a two forward slash characters
Semicolon
Scripts
Multiline Comments
Single-Line Comments
A type of comment that starts with a forward slash and an asterisk and end with an asterisk and a forward slash.
Semicolon
Scripts
Multiline Comments
Single-Line Comments
A special directive that enables the new JavaScript modifications
"use strict"
<script> tag
let
var
A modern variable declaration in JavaScript
constant
<script> tag
let
var
A modern variable declaration in JavaScript
"use strict"
constants
let
var
Words that cannot be used as variable names because they are used by the language itself.
reserved words
constants
let
var
What is not a proper variable naming conventions.
Use human-readable names.
Stay away from abbreviations or short names.
Make names maximally descriptive and concise.
Do not Agree on terms within your team and in your own mind.
A data type that represents both integer and floating point numbers.
Number
NULL
String
Boolean
A data type was recently added to the language to represent integers of arbitrary length.
Number
BigInt
String
Boolean
A data type in JavaScript must be surrounded by quotes.
Number
BigInt
String
Boolean
A data type that is commonly used to store yes/no value.
Number
BigInt
String
Boolean
A special value that does not belong to any of the data types discussed.
Number
NULL
String
Boolean
A data type in which a value is not assigned.
Undefined
NULL
Objects
symbol
A data type that is used to store collections of data and more complex entities.
Undefined
NULL
Objects
symbol
A data type that is used to create unique identifiers for objects.
Undefined
NULL
Objects
symbol
An operator that returns the type of argument.
typeof operator
arithmetic operator
operator precedence
logical operators
An interaction in which it shows a message and waits for the user to press “OK”.
prompt
modal
confirm
alert
It shows a modal window with a text message, an input field for the visitor, and the buttons OK/Cancel.
prompt
modal
confirm
alert
It happens when we need the string form of a value
String Conversion
Numeric Conversion
Boolean Conversion
None of the Above
It happens in mathematical functions and expressions automatically.
String Conversion
Numeric Conversion
Boolean Conversion
None of the Above
It happens in logical operations but can also be performed explicitly
String Conversion
Numeric Conversion
Boolean Conversion
None of the Above
It is the default priority order of operators.
Operator List
MDAS
Arithmetic Operator
Operator Precedence
An operator that returns a value ( = )
Operator List
Assignment Operator
Arithmetic Operator
Operator Precedence
It treat arguments as 32-bit integer numbers and work on the level of their binary representation.
Bitwise Operators
Assignment Operator
Arithmetic Operator
Operator Precedence
