Javascript Basics & Flow Control Flashcards
1
Q
What are the five primitive data types?
A
- Numbers
- Strings
- Booleans
- Undefined
- Null
2
Q
What is a Modulo/Mod?
A
A “%” sign
52 % 5
=2
3
Q
What is concatenations?
A
When two stings are added together!
“Aaron” + “ Scott”
or
“Aaron” + “ “ + “Scott”
4
Q
How do you open the JavaScript Console in Chrome
A
Control + Shift + J
Command + Shift + J
5
Q
What does a “" do in JS strings?
A
Allows you to see invisible items if placed directly before/after
‘what/’s up?’
=what’s up?
6
Q
What type of case is JS?
A
camelCase
7
Q
How do you comment out in JS
A
//
8
Q
What is Ampersand
A
&&
9
Q
What is Ampersand Ampersand?
A
&& = And
10
Q
What is the pipe?
A
|| = or
11
Q
What is the bang?
A
! = Not
12
Q
What 6 things are falsey?
A
- False
- 0
- Empty String or “”
- Undefined
- Null
- NaN
13
Q
What is Dry?
A
Do not repeat yourself
14
Q
<=
A
Less then or equal to
15
Q
how do you write does not equal?
A
!=