JavaScript: Best Websites and Books

For advanced topics and lessons(Websites): Codecademy W3Schools For advanced topics and lessons(Books): You don't Know JS(series) O'Reilly Javascript Books  


JavaScript: For Loop

Definition The 'for loop': it can shorten the code you have to write. it can handle long tasks. NOTE #1 : The for loop syntax is almost the same in all programming languages. Example  (Not using the 'for loop') console.log("10"); console.log("20"); console.log("30"); console.log("40"); console.log("50"); console.log("60"); console.log("70"); console.log("80"); console.log("90"); console.log("100"); Here is the second example:(using the 'for loop') … Continue reading JavaScript: For Loop

JavaScript: Variables

Definition Variables are basically containers that hold a value, like x = 5, which means that the variable x has a value of 5. There are many other values, like string/Boolean/float/etc.... Variables are declared using the keyword 'var'. Example 'Integer' is a number but without decimal places. 'String' is a text. 'Boolean' accepts 'true' and 'false' values only. 'Float' is number with … Continue reading JavaScript: Variables