새로운 강사님과 자바스크립트에 대해 배웠다.
""나"를 사용해서 묶어준다.
""사이에""중복해서 사용하면 안된다.
ex) "this is "string"">error 'this is "srting"'>o
문자열을 합칠때는 +를 사용한다.
ex)"안녕"+"하세요">'안녕 하세요'
인덱스를 가진다
ex) "안녕하세요"[0]>'안'
"안녕하세요"[1]>'녕'
길이 length 1부터시작
ex "안녕하세요".length>5
연산자로
== 값이 같다 ex)1==1>true
ex)1===1>true 1==="1">false
!not 이라는 느낌 !true>false !false>true
!(10===10)>false "kk".length>=5 false !("kk".length>=5)>true
논리합,곱 ll=or,&&and 의미
하나만 쓰면 비트연산자가 된다.
true ll true>true
truell false>true false ll true>true false ll false>false
true&& true>true true&& false> false 양쪽이 true일때만 true 이다.
조건문이 어렵게 느껴진다.