JAVASCRIPT
===========
JavaScript is a programming language.
Program=> set of instructions
Types of programming language
==============================
[Link] oriented programming language/system(OOPS)
=====
Not Readyment
=========
java , php , python ,C++, Mern, [Link]...
===========================================
OOPS=>
======
[Link]=> class is a collection of variables and methods.
=========
Variable=> Variable is a value container in which provides the memory space.
=================
Methods=> method is a block of code which perform a specific task.
Syntax of class=>
==================
class Abc
{
// code
}
[Link]=> The things which we can see or touch are called object.
[Link]=>
[Link]=>
[Link]=>
[Link]=> poly means many and morphism means form.
===============
[Link] based programming language/system(OBPS)
=========
Readyment
==========
JavaScript ,jquery ,Ajax
============
[Link] is a client site scripting language. ex- html, css, bootstrap these
are client site scripting language.
[Link] is used to design the webpage.
[Link] is a first name of livescript.
[Link] is second name of mocha.
[Link] last name of javascript is (Javascript).
[Link] father name of javascript is Sir Brendan Eich.
======================================================
JavaScript object are two types:- most important types these are
[Link](Browser Object Model):-
============================
alert()
confirm() {bracket is method}
prompt()
print()
settimeout()
settimeinterval()
[Link](Document Object Model):-
===========================
Decision Controls(most imp topic)
=====================
Decision Controls are decision making in in javascript.
===============
There are four type of decision controls.
============================================
1. if condition
2. if else condition
3. ladder if else condition
4. switch.
# if condition:- if is a keyword which work as a decision.
========================
syntax
========
if (condition)
{
// code .
}
============
if(switch=on)
{
// fan start
}
==============
if(a=5)
{
=,==,===(assignment operator, equal, double equal)
a=5.5;
a==5
a===5
5.5===5
// excute
}
===============
if else condition
====================
if (condition)
{
// excute
}
else{
// excute
}
================
ladder if else
================
if(condition)
{
//code
}
else if (condition)
{
//code
}
else
{
//code;
}
===========
switch
=========
switch(condition)
{
case 1:
//code
case2:
// code
default:
// code
break;
}
===============
Loop:-
========
There Are three types of loop:-
====================================
1. While Loop
2. For Loop
3. Do-while Loop
=====================
while loop
=============
syntax
=========
inilit of loop
while (condition)
{
// code
updation;
}