Meta characters: Meta characters are special characters that have a symbolic meaning and are used to define patterns. 1) Dot(.): matches any single …
Read moreUnikaksha: Regular expressions: a regular expression often refered to as regex, is a sequence of characters that forms a searcg pattern. It is a powe…
Read morea = 55; b = 65; c = 75; function add(a,b,c){ return a + b + c; } console.log(add(55,65,75)); //function expression let add = function(…
Read more7) Input: [5, 2, 1, 3, 2, 4, 5] Output: 1, 2, 3, 4, 5 let num = [5, 2, 1, 3, 2, 4, 5]; let result = [...new Set(num)].sort((a,b) => a - b); conso…
Read moreStrict Mode: this feature in javascript that enables a stricter set of rules for writing your js code. When "use strict" is specified at th…
Read moreconst animal = ["tiger", "lion","elephant"]; animal.sort(); console.log(animal); let arr = [1,11,2,3,112,6]; arr.sort…
Read moreBreak Statement: The break statement is used to terminate the execution of a loop or switch statement. When encountered the break statement causes …
Read more
Social Plugin