1 분
Java Script Node
Java Script MEMO
Code output
Code output
\' single quote
\" double quote
\\ backslash
\n newline
\r carringe retrun
\t tab
\b backspace
\f form feed
array add or remove
add array : .push();
remove last array : .pop();
remove first array : .shift();
add first array : .unshift();
Accessing object properites with dot motation
dot notation / bracket notation
var testObj = {
"case 1": "test1",
"case 2": "test2",
"case3": "test3"
};
var a1 = testObj["case 1"];
var a2 = testObj["case 2"];
console.log(a1);
console.log(a2);
//dot
console.log(testObj.case3);