Day-1 JavaScript

So Eun Ahn·2021년 1월 3일
0

JavaScript

목록 보기
1/26

Udemy에서 Jonas Schmedtmann의 JavaScript수업을 결재했고
한 2시간 반동안 앉아서 수업을 들은거 같다.

문득 시계를 보니 벌써 오후 10시 54분이다. 어서 속도를 내고 싶다.
하루에 4시간씩 수업 듣는거 가능할련지.
강의속도를 한 1.5정도로 두고 하면 될꺼 같기도 하다.

풀타임은 아니라도 파트타임 부트캠프 기분은 낼수 있을꺼 같다.

Value is either Object or Primitive
There are 7 types of Primitive Values
1. Number: floating point numbers  used for decimals and integers
ex: let age = 23;
2. String: Sequence of characters:  used for text
ex: let firstName = “Jonas”;
3. Boolean: Logical type that can only be true or false  used for taking decisions
ex: let fullAge = true;
4. Undefined: Value taken by a variable that is not yet defined(‘empty value’)
ex: let children;
5. Null: Also means empty value
6. Symbol (ES2015): Value that is unique and cannot be changed (not useful for now)
7. BigInt (ES2020): Larger integers than the Number type can hold
Code Commenting: // or /* /
Typeof operator
Variable을 let declare한뒤에 한벋더 declare할때에는 let을 이용할 필요 없다.
Dynamic typing: data types are determined automatically
value that has a type NOT variables.
이러한 성질때문에 같은 variable을 중복해서 declare할수도 있다 단지 성질이 바뀌는 것
console.log(typeof null);
콘솔창에서 object라고 나오는데 error이다.

Declaring Values: Let/ Const /Var
 Const: declare variables that cannot be changed in the future  cannot be declared in empty value
 Var: old way of declaring variables  similar to let
Template Literal : can write a string in a more normal way, and then insert the variables directly into the strings  can assemble multiple pieces into one final string

profile
오늘도 새로운 도전을 한다

0개의 댓글