Javascript-functions

How to use Ternary Operator in JavaScript?

A shortened version of the condition statement is called the ternary operator. Ternary operators can be simple or nested.

How does the replace() Method Work in JavaScript?

JavaScript replace() inline method accepts two parameters, the first parameter can be a string value or a regular expression.