js

Pros

  1. Rich Interface
  2. Extended Functionality
  3. Simplicity
  4. Large Community

Cons

  1. Lack of Debugging Facility
  2. Client side security
  3. Single Inheritance

Application

  1. Allow user to Interact with website
  2. Web and mobile apps
  3. Web Server
  4. Game development

Table
3 dec

snippet diy

how to make table in js.
Minify js
5 dec

optimization speed seo

minify save your band-width
Sum of Array
7 jan

snippet

a one-liner for sum of array.
forEach
12 jan

snippet , tutorial

Built-in method that take a callback function.
Map function
12 jan

snippet , tutorial

Built-in method that take a callback function.

snippet , tutorial

Built-in method that take a callback function.

snippet , tutorial

Built-in method that take a callback function.

Sum of Array
let arr = [1,2,3];
let sum = arr.reduce((acc,cur) => acc+cur ,0);
console.log(sum);

forEach

Iterate an array. It takes a callback function with element, index, and array itself.

Array.forEach( (element,index,array) => 
	{ console.log(element,index,array) } 
);
const str = ['apple','orange','pear'];
str.forEach( ele => console.log(ele.toUpperCase()) );

	Output: APPLE
			ORANGE
			PEAR