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

March 2023

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