What is JavaScript ?
It is a programing language that makes a website dynamic(action) and interactive.It can delete, create, and even modify or alter.
Data-Information
String-More than one character
Integer-Number
JS Library-Collection of pre-written code provide ready-to-use function.
JS framework-A st of tools bulid using javascript,specifically designed for building web applications.
VARIABLE:
It is a container that stores a value such as a number, a piece of string, a boolean (true/false), an object, etc.
EXAMPLE:
let name = "Alice";
let age = 25;
let isStudent = true;
Here:
name is a variable that holds the string "Alice"
age holds the number 25
isStudent holds the boolean value true
- Variable can be Changeable
- Starts in lower case
- No space in-between
Can be declared with and without keyword
**Dynamically[duck type]-**JavaScript(Need not to mention the datatype)
Statically-Java(Mention the data type for the 1st time)
**
SCOPE:**
Global-Everyone or anyone can access.
Local-Particular people can access or do anything.
Top comments (0)