Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var string = '02h04m33s';
- var heure = string.split('h');
- var minute = heure[1].split('m');
- var seconde = minute[1].split('s');
- console.log(heure[0])
- console.log(minute[0])
- console.log(seconde[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement