Question: Javascript function that takes a String parameter and returns a String value. The function should return the first half of the String parameter as a
Javascript function that takes a String parameter and returns a String value. The function should return the first half of the String parameter as a String value or returns empty if the String is empty.
Step by Step Solution
There are 3 Steps involved in it
To accomplish the task of creating a JavaScript function that takes a string as a parameter and returns the first half of it or an empty string if it ... View full answer
Get step-by-step solutions from verified subject matter experts
