JavaScript
-
FunctionsJavaScript 2021. 10. 11. 21:55
이 글은 자바스크립트의 Function(함수)에 관한 개념 및 문법을 정리하기 위해 작성하였습니다. A function is a reusable block of code to perform a specific task. function identifier() { // function body } The function keyword Function's name (a.k.a identifier) : identifier The block of statements required to perform a specific task : function body : Allow access to functio..
-
ConditionalsJavaScript 2021. 10. 9. 23:29
이 글은 자바스크립트의 Conditionals(조건문)에 관한 개념 및 문법을 정리하기위해 작성하였습니다. To check a specific condition(s) and perform a task based on the condition(s) We can make decisions based on circumstances. if (condition) { // code block or block statement } Condition evaluates to true, block runs. Condition evaluates to false, block won't run. ex) if (true) { console.log('This messa..
-
VariablesJavaScript 2021. 10. 8. 16:51
이 글은 자바스크립트의 Variables(변수)에 관한 개념 및 문법을 정리하기 위해 작성하였습니다. You can think of variables as little containers for information that live in a computer's memory. Provide a way of labeling data with descriptive name. let myName = LSH // myName variable is initialized with LSH var myName = LSH const myName = LSH 1. variable's name(camel casing) : myName 2. value : LSH ..
-
Introduction to JavaScriptJavaScript 2021. 10. 7. 23:06
이 글은 JavaScript의 조건문이나 반복문 등 주요 개념을 배우기 전, 기본 문법 및 바탕이되는 개념사항들을 정리하기 위해 작성하였습니다. A panel that displays important messages, like errors, for developers. Data is printed, or logged, to the console withconsole.log() ex) console.log(22) // 22 To leave notes in our code for other developers or ourselves. Computer will ignore it as our program runs. Single line comment => Use ..