Trim Trailing Zeros
Imagine you have a number written down on a piece of paper, where the digits are represented as characters. However, the number has some trailing zeros at the end, which you want to remove.
Your task is to take the number written on the paper, represented as a string, and print the same number without any trailing zeros, also represented as a string.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)