Console logs, Errors, warning and more javascript

 

Console.log("hello world)   //String
Console.log(4+5)      //Operations
Console.log(34)		// integre
Console.log(true)	//boolean
This helps to print message in console.
console.log([25,1,2,5]);    //Array
console.log({shreyash:'student', marks:32})    //object
This is the array and objects in javascript. array store multiple values in one variable. and object store same like java but object store in key and value.
console.table({shreyash:'student', marks:32})
This helps the object data display in tabular form.
console.warn("This is warning");
console.error("This is an error
console.time('your code start');
console.timeEnd("you code end');
This helps to show how many time did it take.

Mutating or Modify Array.
  1. push: put element at the end of Array.
  2. unshift: Put element at the start of Array.
  3. pop: Remove element at the end of Array.
  4. shift:  Remove element at the start of Array.
  5. splice: Remove element in Rang.
  6. reverse: reverse
  7. concat:  Concate two Arrays(end).