Javascript Allonge Flashcards
42 - Is this an expression? A value? Neither? Or both?
Both.
What makes this an expression? “JavaScript” + “ “ + “Allonge”
The plus symbol.
4 Types of Comparisons.
- Different kinds - This corresponds to comparing two things in JavaScript that have different types. 2. Different kinds - This corresponds to comparing two JavaScript values that have the same type but different “content.”
What does the following statement eavluate to…
[2-1, 2, 2+1] === [1, 2, 3]
returns False
In computer science, what is a literal?
A literal is a notation for representing a fixed value in source code. Almost all programming languages have notations for atomic values, such as integers, floating-point numbers, and strings, and usually for booelans and characters; some also have notations for elements of enumatred types and compound values such as arrays, records, and objects. An anonymous function is a literal for the function type.
42 in Javascipr is a literal. It represents the number forty-two, which is…
42 base 10.
Numbers in Javascript are represented as….
floating point, meaning that they need not be just integers. So 1.5 or 33.33 represents these literals as floating point numbers.
Javascript literal numbers are of what base?
base 10.
In Javascript, functions can be considered a..
a value… much more complex than simple numbers, strings, or even comple data strcutures like trees or maps. Functions represetn compuations to be performed.
Is a “Function” a reference or value type?
Referecne Type.
What is void in javascript?
void is an operator that takes any value and evalutes to undefined, always!
An expression in javascript is also called a…
javascript statment.