You are not logged in.

#1 2017-12-08 05:08:20

hamidoon123
Moderator
Registered: 2017-09-21
Posts: 50,766

What is the code to be used to trim whitespaces?

Software Engineering Exams Quizzes MCQs Quizzes JavaScript Online MCQs Test

Question:
What is the code to be used to trim whitespaces?

Option A):
let trimmed = for(l in lines));
Option B):
let trimmed = (trim(l));
Option C):
let trimmed = l.trim();
Option D):
let trimmed = (l.trim() for (l in lines));

Correct Answer is Option D):
let trimmed = (l.trim() for (l in lines));

2017-12-08 05:08:20

Advertisement
Ads By Google

Re: What is the code to be used to trim whitespaces?



\n

Board footer