Browsed by
Tag: training

JavaScript Comments

JavaScript Comments

Not all JavaScript statements are “executed”. Comments are lines of code that JavaScript will intentionally ignore. Commenting is a way that you can: Leave no to other developers. Describe what your code does. Leave notes to yourself for the future. Comment out a part of the Javascript code without deleting it. There are two ways to write comments in JavaScript: Single-line Comment Multi-line Comment Single Line Comments Single line comments start with  // ( two forward slashes).Anything you write after…

Read More Read More

JavaScript Syntax

JavaScript Syntax

In computer science, the syntax of a computer language (aka programming language ) is the set of rules that defines the structure of a programming language. And a computer programmer should follow these rules in order for the program to work. JavaScript syntax refers to a set of rules that determine how the language will be written (by the programmer) and interpreted (by the browser). Shortly, as a programmer, you have to follow some rules in order for the program…

Read More Read More

JavaScript Statements

JavaScript Statements

Example JavaScript Programs The idea of the statement is the same in every programming language.A computer program is a list of ‘ instructions’ to be ‘executed’ by a computer.Computers follow these ‘ instructions ‘ or ‘ steps’.Computers read these instructions from top to bottom, one by one.It’s like doing something step by step. But in a programming language, these programming instructions are called statements. Javascript Statements end with a Semicolons ; The idea of ‘statement’ is the same in every…

Read More Read More