AdsReg.com Magazine Logo
📌 Press Ctrl+D to bookmark this page.

Web

Mathematical Operations

Types of JavaScript Operators There are different types of JavaScript operators: Arithmetic Operators Assignment Operators Comparison Operators Logical Operators Conditional Operators Type Operators Operation Table Line Operation Description 1 + Addition 2 – Subtraction 3 * Multiplication 4 ** Exponentiation (ES2016) 5 / Division 6 % Modulus (Division Remainder) 7 ++ Increment 8 — Decrement …

Mathematical Operations Read More »

Const

Whats const? A const variable cannot be reassigned You have to know: Variables defined with const cannot be Redeclared. Variables defined with const cannot be Reassigned. Variables defined with const have Block Scope.   Const Samples Overview? const aq = 4.44267568; aq = 1.44; // This will give an error aq = aq + 70; …

Const Read More »

Variables

4 Ways to Declare a JavaScript Variable: Using var Using let Using const Using nothing What are Variables? Variables are containers for storing data. Like text / Numbers / Dates / Colors and more… JavaScript/004-Variables   JavaScript let/var   Sample: let x = “Bill Gates”; let x = 2000; // SyntaxError: ‘x’ has already been declared var x …

Variables Read More »

Comments-Notes

Single Line Comments Single line comments start with //. Any text between // and the end of the line will be ignored by JavaScript (will not be executed). This example uses a single-line comment before each code line: Sample1: Single Line Comments JavaScript/003-Comments-Notes/001-Comments-Notes-SingleLine Multi-line Comments Multi-line comments start with /* and end with */. Any text between /* and */ will be ignored by JavaScript. …

Comments-Notes Read More »

How to start writing

We have multiple ways to write JavaScript commands. There is 4 type of script writing sample. Sample1: Inline HTML JavaScript/002-HowToStartWriting/001-InlineCommand1 Sample2: Inline HTML – Multiple JavaScript/002-HowToStartWriting/002-inlineCommand2 Sample3: In Head – Script Tag JavaScript/002-HowToStartWriting/003-JavaScriptTagInHead Sample4: External JavaScript File JavaScript/002-HowToStartWriting/004-JavaScriptExternalFile

AdsReg Magazine We would like to show you notifications for the latest news and updates. You can disable it when you want.
Dismiss
Allow Notifications