Skip to content
Advertisement

how to iterate until the second last element in ReactJS

I am relatively new at ReactJS. So, I’ve been trying to create a countdown using React, which I managed to do, but it returns this

Essentially, I don’t want the colon after the ‘seconds’.

This is my code for the countdown.

JavaScript

Would really appreciate the help thanks!

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement