Tag javascript map

JavaScript Comments

JavaScript comments can be used to explain JavaScript code, and to make it more readable. JavaScript comments can also be used to prevent execution, when testing alternative code. Single Line Comments Single line comments start with Any text between…

JavaScript Syntax

JavaScript syntax is the set of rules, how JavaScript programs are constructed: // How to create variables: var x; let y;     // How to use variables: x = 5; y = 6; let z = x + y; JavaScript…

JavaScript Statements

Statements Example let x, y, z;    // Statement 1 x = 5;          // Statement 2 y = 6;          // Statement 3 z = x + y;      // Statement 4

JavaScript Reserved Words

In JavaScript you cannot use these reserved words as variables, labels, or function names: abstract arguments await* boolean break byte case catch char class* const* continue debugger default delete do double else enum* eval export* extends* false final finally float…

JavaScript Output

JavaScript Display Possibilities JavaScript can “display” data in different ways: Writing into an HTML element, using innerHTML. Writing into the HTML output using document.write(). Writing into an alert box, using window.alert(). Writing into the browser console, using console.log(). Using innerHTML…

JavaScript Where To

The <script> Tag In HTML, JavaScript code is inserted between <script> and </script> tags. Example <script> document.getElementById(“demo”).innerHTML = “My First JavaScript”; </script>

JavaScript Introduction

What is JavaScript? JavaScript is the programming language of the web. It can update and change both HTML and CSS. It can calculate, manipulate and validate data. Why Study JavaScript? JavaScript is one of the 3 languages all web developers…