Hello Everyone,
Today we will learn the basics of data types, variables, objects and the properties in Java Script.
what is java script?
- Java Script is the programming language of the web development and the use of update and change the HTML and CSS. It can be calculate, manipulate and validate the data.
why java script?
- It you can use the java script to program the behavior of the web pages.
data
Data Types:
String (if you declare letters inside the double course, [example: "java script"]).
Number (Any numbers, example: int[95] or float[8.34] ).
Bigint (Large int in number list [eg: 234567894352356] ).
Boolean (Logical values [True or False] ).
Undefined ( some variales is declared but not defined the values).
Null ( developers intentional is empty value for the input null).
symbol (it is a Unique Identifiers).
let name = "Vishnu";
let age = 25;
let bigNumber = 3456789098765483553;
let isStudent = true;
let score;
let emptyValue = null;
let uniqueId = Symbol("id");
IDENTIFIERS AND VARIABLES IN JAVA SCRIPT:
An identifier is the name used to identify variables, functions, arrays, objects [ex: city, age, state, country]
In the Keyword of the variables is { var, let, const}.
var - In the function is scoped the older way.let - If you assign one value, you can change the other value.
const - If you assign one value is constant, you can't change the value.
example: [var, let, const]
OBJECTS AND PROPERTIES IN JS:
The object are called the things. [eg; bike, house, person].
The name of the values in java script object are called properties.
eg: [name, age, gender, qualification, height, weight] .
create on object:
// Create an Object:
person = {
//property // values
firstName: "John",
lastName: "Doe",
age: 50,
eyeColor: "blue"
};
PROGRAMMING LANGUAGE:
Programming languages are two types these;
Compiled Programming language: The compiled program are like java and c, c++. It is statically type.
Interpreter Programming language: Java Script and python etc.,
Java Script is dynamically type.
Thus the above concepts today i learned my class. The java script basics are very helpful for me and learners.
Top comments (0)