+ 1

Can I convert the value in js

I have the id "#x1y4" i can do id[2] id[4] but output be "1" and "4" I need 1 and 4

6th Aug 2018, 11:31 AM
Ω-mega
Ω-mega - avatar
1 Réponse
+ 1
You can try parseInt(string goes here)
6th Aug 2018, 11:41 AM
Duncan
Duncan - avatar