Today #day26 of #100daysofcode, I have completed module-2 and code project and lesson 1 of module-3 and a practice program in JS. @Sololearn
String operators
- JavaScript adds numbers from left to right
Example:
document.write(11+12+"33"); //11+12 & "33" //2333
document.write(11+"33"+12+10); //11331210
Module - 3: Conditionals and loops
The if Statement
- if statement contains a specific block of code which holy gets executed if the condition is true.
Syntax:
if (condition) { statements }
Note: - alert() will display a pop up in the browser.
- if case sensitive,
If
orIF
won't work.
Images:
Conclusion
- String operators
- code project
- Conditionals and loops: The if Statement
- quiz