Embed presentation



![Control Flow
if (condition)
statement_1
[else
statement_2]](https://image.slidesharecdn.com/roadtocode-130509080126-phpapp01/85/Road-to-code-4-320.jpg)
![Loop
for ([initialExpression]; [condition];
[incrementExpression])
statement
while (condition)
statement](https://image.slidesharecdn.com/roadtocode-130509080126-phpapp01/85/Road-to-code-5-320.jpg)



JavaScript has several data types including numbers, strings, and Booleans. It uses various operators for assignment, comparison, arithmetic, bitwise, logical, and string operations. Control flow is handled with if/else statements and loops like for and while. Functions are declared with the function keyword followed by a name, parameters, and curly braces containing statements to execute.



![Control Flow
if (condition)
statement_1
[else
statement_2]](https://image.slidesharecdn.com/roadtocode-130509080126-phpapp01/85/Road-to-code-4-320.jpg)
![Loop
for ([initialExpression]; [condition];
[incrementExpression])
statement
while (condition)
statement](https://image.slidesharecdn.com/roadtocode-130509080126-phpapp01/85/Road-to-code-5-320.jpg)

