InterviewSolution
Saved Bookmarks
| 1. |
What is the code to be used to trim whitespaces?(a) let trimmed = (l.trim() for (l in lines));(b) let trimmed = (trim(l));(c) let trimmed = l.trim();(d) let trimmed = for(l in lines));This question was addressed to me in an interview for job.Query is from Shorthand functions and Multiple catch clauses topic in section Classes and Modules in JavaScript of JavaScript |
|
Answer» The correct OPTION is (a) let trimmed = (l.TRIM() for (l in lines)); |
|