Javascript Allonge Flashcards

1
Q

42 - Is this an expression? A value? Neither? Or both?

A

Both.

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

What makes this an expression? “JavaScript” + “ “ + “Allonge”

A

The plus symbol.

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

4 Types of Comparisons.

A
  1. 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.”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the following statement eavluate to…

[2-1, 2, 2+1] === [1, 2, 3]

A

returns False

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

In computer science, what is a literal?

A

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.

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

42 in Javascipr is a literal. It represents the number forty-two, which is…

A

42 base 10.

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

Numbers in Javascript are represented as….

A

floating point, meaning that they need not be just integers. So 1.5 or 33.33 represents these literals as floating point numbers.

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

Javascript literal numbers are of what base?

A

base 10.

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

In Javascript, functions can be considered a..

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.

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

Is a “Function” a reference or value type?

A

Referecne Type.

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

What is void in javascript?

A

void is an operator that takes any value and evalutes to undefined, always!

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

An expression in javascript is also called a…

A

javascript statment.

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