What are Truthy and Falsy values?
How works Primitives Values?
Primitive Values include, among other things, numbers and strings. Using console.log(), open your browser’s console and print the following primitive values:
There is one thing that all primitive values have in common. Nothing I can do in my code would have any effect on them.
What are Objects and Functions?
Function: Basically, a function is a “subprogram” that can be called by code that is external to the function. A…
The slice() removes segments of a string and returns them as a new string. To define which part of the string we want to remove, use the start and end parameters. Position 0 belongs to the first character, position 1 to the second, and so on. But, the original array can not be changed.