ambujbpl / javaScriptBasics

This repository contain basic JavaScript Functions, Array, Object concept.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

javaScriptBasics

Checkout All Branches for different types of JavaScript Functions, Array and Object concept.

This Repository shown different types of javascript functions, array and obect which will be used on any web based project.

1 JavaScript Function

00_Function_Statements_and_Function_Expressions:- Function Statements, Function Expressions, First Class Function->Functional programming and Function Binding
01_Function_With_Dynamic_Arguments:- we can pass n number of argument and it will computer using arguments array which is built in javascript feature.
03_An_Anonymous_Function:- we can make an Anonymous Function, and use it as variable.
04_Self_Executing_Function_or_Self_Invoking_Function:- function which call and execute itself when javascript load in browser.
05_Callback_Function:- we can pass function refrence as an argument in another function.
11_Nested_Function:- function inside function[Note - It will call using inside main function only].
12_Function_Which_Returning_Function:- we can send or return a function when main function excecute d and store it in variable.
13_Function_Reassigning:- we can redefine any function at run time using this.
14_Array_of_Function:- we can refrence any function on array element itself.
15_Attached_Function_to_an_Events:-
16_Closure_in_JavaScript:-
17_Built_in_Function_Constructor:- Built-in Function Constructor in JavaScript

2 JavaScript Array

06_Array.every_Function:- it will return true if all elements of array satisfy any specific condition else it will return false.
07_Array.some_Function:- it will return true if any one elemet of array follow specific condition else it will return false.
08_Array.filter_Function:- it will send a new array which satisfy specific condition in the main array.[help to filter specific elements in javascript].
09_Array.forEach_Function:- help to iterate each element inside array.
10_Array.map_Function:- Help to compute or add any operation in array each elements.
14_Array_of_Function:- we can refrence any function on array element itself.
18_Associate_Array_in_JS:- associative array is nothing but advance javascript object

3 JavaScript Object


Object creation Pattern In javascriipt

var temp = {}
or,
var temp = new Object;

Both are same mostly use upper one.

Object and Object literal
var x = {name:"ambuj",age:27}// This is Object Literal syntex
var x = new Object(); // This is old javaScript object initialization statement
x.name = "ambuj";
x.age = 27;
19_Object_Factory_Pattern:- object creation using javascript factory pattern.
20_Object_Constructor_Pattern:- object creation using javascript constructor pattern.
21_Object_Prototype_Pattern:- object creation using javascript prototype pattern.
22_Object_Dynamic_prototype_Pattern:- object creation using javascript Dynamic prototype pattern.

About

This repository contain basic JavaScript Functions, Array, Object concept.


Languages

Language:JavaScript 63.1%Language:HTML 36.9%