[Go to site: main page, start]

0% found this document useful (0 votes)
10 views2 pages

JavaScript Basics Notes

JavaScript is a lightweight programming language used for creating interactive web pages, running in browsers and on servers via Node.js. Key concepts include variables, data types, operators, functions, conditions, loops, arrays, and objects, with JavaScript integrated into HTML using the script tag. This document serves as a personal reference for learning and sharing JavaScript basics.

Uploaded by

Animaxf
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

JavaScript Basics Notes

JavaScript is a lightweight programming language used for creating interactive web pages, running in browsers and on servers via Node.js. Key concepts include variables, data types, operators, functions, conditions, loops, arrays, and objects, with JavaScript integrated into HTML using the script tag. This document serves as a personal reference for learning and sharing JavaScript basics.

Uploaded by

Animaxf
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JavaScript Basics – Self Written Notes

What is JavaScript?
JavaScript is a lightweight interpreted programming language used to make web pages interactive.

Where JavaScript Runs


JavaScript runs in browsers and on servers using [Link].

Variables
Variables are used to store data. Keywords: var, let, const.

Data Types
Number, String, Boolean, Undefined, Null, Object, Array.

Operators
Arithmetic, comparison, logical, and assignment operators.

Functions
Functions are reusable blocks of code that perform a task.

Conditions
Use if, else if, else, and switch statements.

Loops
for, while, and do-while loops repeat tasks.

Arrays
Arrays store multiple values in a single variable.

Objects
Objects store data as key-value pairs.

JavaScript in HTML
JavaScript is added to HTML using the script tag.
Author Note
This document is created by me for learning and sharing purposes.

You might also like