Javascript Notes by Akhilesh Sharma
Javascript Notes by Akhilesh Sharma
FEATURES:
it is a glue language.
it is simple to use and learn.
it is interpreted language.
it id platform independent ,
it is light weight language,
it is loosely typed language,
it has rich set of libraries.
AREA OF JS:
Basic concept:
2) let num1=25.8;
3) let num2=-335.4;
3) let str3=` today is the best day of my life`; -> tilde notation ` `
Operators:
Arithmetic: + , - , * , / , %
Unary: ++ , --
Logical: && , || , !
-
str.slice(start, end) -> gives the part of string u want.
-str.split() -> split the string with , comma. And return an array.
-str.trim() -> removes the white space from start and end of the
string.
-str.match() – find the word in the string and provide output in array.
Array: Array is a collection of similar or different types of elements.
Some most important methods of array are as –
forEach:
Object: An object is a collection of properties, and a property is an
association between a key and a value.