Day 1 Flashcards
Data type that is unique and cannot be changed. Not important to learn right now
Symbol
Press this key on your keyboard to execute the code in the Console tab.
Enter
Value is primitive, only if it’s not an _______.
Object
A data type which is a sequence of characters.
String
Large integers than the Number type can hold.
BigInt
This means that the language is a lot easier to write and to learn because it abstracts almost everything.
High-level
We use comments in JS too! To write a single line comment type ________.
//
A data type which is a Logical type: true or false.
Boolean
You need to use ________ (single or double) when creating a string!
Quotes
JS is a _________, __________, and multi-__________ programming language.
JS is a high-level, object-oriented, multi-paradigm programming language.
This means that we can use various programing styles such as imperative and declarative.
Multi-paradigm
What code to use when you want to alert or pop up a string ‘Hello World’ in the browser?
alert(”Hello World!”)
Use all _________ letters when naming a variable that is constant.
Uppercase
We used an HTML _________ tag inside of the head tag and we put some line of JS code there.
script
The most fundamental unit of info in programming.
Value
To determine the type of a value, use an operator called ________.
typeof
The script tag can be inside of the _______ tag or the ______ tag, it has its differences which will be discussed later.
head or body tag
To use multi line comment _________.
/* */
Shortcut to open developer tools in Chrome.
Ctrl+Shift+I
JavaScript has __________ which means JS automatically determines the data type you assigned in a variable. We do not need to manually define what data type we are using like in other programming languages. This also means that a variable can be changed into any data type (this could cause problems which is why TypeScript is utilized).
Dynamic typing
Variables cannot be named after a _________ keyword!
Reserved
Value taken by a variable but not yet defined.
Undefined
Numbers always have ____________ even if you explicitly did not put any.
Decimal values
Variable name cannot start with a __________!
Number
Every value is either an ___________ or __________ value.
Object or primitive
Data type that means ‘empty value’.
Null
Where you store or assign values to use them over and over again
Variable
This means that the language is mostly based on the concept of objects for storing most kinds of data.
Object-oriented
In JS, all of the Number data types are __________ numbers.
Floating point numbers
Name your variables very __________. This is a convention.
Descriptive
Open the HTML file, then we write JS code in what we called an ______ script, basically a JavaScript code written inside of an HTML file.
Inline
We then create an external JS file (script.js) and link it by using a _______ attribute. Because its not okay to put JS code in the HTML file. This also makes it more organized.
src
There is a reserved word called _______ that can be actually used as a variable name but it could cause problems so avoid it.
name
We use this naming convention in JS.
camelCase
When you check the typeof a null data type it will return as ________. This is a bug and should return null.
object
The _______ has the data type not the variable!
Value
Variables can only contain letters, numbers (as long as its not at the start), ________ and __________.
Underscore and dollar sign
You can go back to some commands you’ve used by pressing _______ commands.
Arrow commands