JavaScript Math.abs() methodjs Math.abs() method returns the absolute value of a number. If the given number has (-), it avoids the (-) sign and returns the absolute…Nov 8, 2020Nov 8, 2020
JavaScript ClosuresHere’s what actually happens. When we call makeAdder with an argument 10 and save it to a variable add10. Now x is 10 and returns the…Nov 5, 2020Nov 5, 2020
js Number.parseFloat() and Number.parseInt()The Number.parseFloat() method returns floating-point of an argument. If the argument isn’t parsed, it returns NaN.Nov 2, 2020Nov 2, 2020
Some useful JavaScript StringcharAt, concat, includes, endsWith, indexOf, lastIndexOf, replace, slice, split, startsWith, substr, toLowercase, toUppercase, trim…Nov 2, 2020Nov 2, 2020