Intro to JS - WIP
#미완성 (3/4/22)
Today’s session was spent on the basics of Javascript.
- Datatypes
- Operators
- Prompt Method
- Loops
Datatypes:
String Concatenation
Operators:
Prompt Method:
var value = prompt("input test value");
console.log(value);
Additionally, the confirm method may be used for Y/N prompts.
var result = confirm("javascript is fun");
var vote = result ? "fun" : "not fun";
Loops:
Loops from all the regular C-syntax languages are supported in JS. Like if-else, while-do, for loops, which function identically to their counterparts in other programming languages.
-gonkgonk