Corsi
AccediInizia a imparare l'IA
Corsi
AccediInizia a imparare l'IA
+ 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

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

Hai spesso domande come questa?

Impara in modo più efficiente, gratuitamente:

  • Introduzione a Python

    7,1M studenti

  • Introduzione a Java

    4,7M studenti

  • Introduzione a C

    1,5M studenti

  • Introduzione a HTML

    7,5M studenti

Vedi tutti i corsi
Popolare oggi
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes