Q. 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));
πŸ’¬ Discuss
βœ… Correct Answer: (A) let trimmed = (l.trim() for (l in lines));

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Kirti
Publisher
πŸ“ˆ
99%
Success Rate