Console logs, Errors, warning and more javascript
Console.log("hello world) //String Console.log(4+5) //Operations Console.log(34) // integre Console.log(true) //booleanThis helps to print message in console.
console.log([25,1,2,5]); //Array console.log({shreyash:'student', marks:32}) //objectThis 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.
- push: put element at the end of Array.
- unshift: Put element at the start of Array.
- pop: Remove element at the end of Array.
- shift: Remove element at the start of Array.
- splice: Remove element in Rang.
- reverse: reverse
- concat: Concate two Arrays(end).
Post a Comment