Basics of Coding Flashcards
What is JavaScript?
A scripting language you can use to make web pages interactive. It is one of the core technologies of the web, along with HTML and CSS, and is supported by all modern browsers.
Data
Data is anything that is meaningful to the computer.
What are the eight different data types in Javascript?
- undefined,
- null,
- boolean
- string
- symbol,
- bigint,
- number
- object.
Define the datatypes?
- undefined = Never defined
- null = Defined as nothing
- boolean = Logical entity and can have two values: true and false
- string = Collection of Characters (Text)
- symbol =
- bigint = numeric primitive in JavaScript that can represent integers with arbitrary precision.
- number = integers
- object = complex data type that allows you to store collections of data
What are variables?
Variables are containers for storing data (storing data values).
What is HTML and CSS?
HTML (HyperText Markup Language) is the contents of the page (links, text)
CSS (Cascading Style Sheets) is the design of the page (color)
True of False? Initialization means of assigning an initial value to a variable
TRUE
What happens when you dont initialize in Javascript?
If we just declare a variable without assigning an initial value, the value of the variable will be undefined
String vs String Literal
True of False : When JavaScript variables are declared, they have an initial value of undefined. If you do a mathematical operation on an undefined variable your result will be NaN which means “Not a Number”.
TRUE
What does Concatenation mean?
the operation of joining two strings together
Is Javascript case sensitive?
Yes!!! This means that capitalization matters.
What is camelCase and why does in matter in Javascript?
The use of a capital letter to begin the second word in a compound name or phrase. E.g iPOD or FedEx
The most recommened way to declare JavaScript variables is with camel case variable names, it will ensure that there aren’t multiple variables with the same name.
4 WAYS TO DECLARE VARIBLE?
- Var
- let
- const.
- nothing.
TRUE OR FALSE? You should always name variables you don’t want to reassign using the const keyword
TRUE!!!