Javascript - Flow (Control Structures)

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - About

3 - Statement

3.1 - If

var iceCream = "chocolate";
if (iceCream == "chocolate") {
  console.log("Yay, I love chocolate ice cream!");    
} else {
  console.log("Awwww, but chocolate is my favorite...");    
}

Advertising

3.2 - Ternary

Language - Conditional operator (ternary) in Javascript

foo = ( 1==1 ? true : false )
console.log(foo)

3.3 - Loop

See loop

3.4 - Switch

4 - Documentation / Reference

web/javascript/es/flow.txt · Last modified: 2019/02/16 17:40 by gerardnico