Q. What is the code to be used to trim whitespaces?

  • (A) let trimmed = for(l in lines));
  • (B) let trimmed = l.trim();
  • (C) let trimmed = (trim(l));
  • (D) let trimmed = (l.trim() for (l in lines));
πŸ’¬ Discuss
βœ… Correct Answer: (D) let trimmed = (l.trim() for (l in lines));

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
212
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
88%
Success Rate