Question: Code the following JavaScript function. 1. A function by the name of validate. 2. It takes one string parameter. 3. Checks if the parameter value
Code the following JavaScript function.
1. A function by the name of validate.
2. It takes one string parameter.
3. Checks if the parameter value is empty. If so, return string "Value is empty". Otherwise return an empty string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
