Cours
Se connecterCommencer Ă  apprendre l'IA
Cours
Se connecterCommencer Ă  apprendre l'IA
+ 1

Javascript variable

How do I calculate an input value? If perhaps the user enters “2+2+2” how do I output the result?

javascriptcodingcalculate
6th Jul 2019, 3:16 PM
Enahoro Godwin
Enahoro Godwin - avatar
1 Réponse
+ 2
check this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval
6th Jul 2019, 3:45 PM
MO ELomari
MO ELomari - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de maniĂšre plus efficace, gratuitement :

  • Introduction Ă  Python

    7.1M apprenants

  • Introduction Ă  Java

    4.7M apprenants

  • Introduction Ă  C

    1.5M apprenants

  • Introduction Ă  HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
CAN ANYONE SUGGEST ME AS A STUDENT WITH A PASSION OF CODING WHICH CODING LANGUAGE SHOULD I CHOOSE AS BEGGINER
5 Votes
I can't see my activity
2 Votes
[SOLVED] What's wrong in my code?
2 Votes
I can't see my activity in my profile
1 Votes
Hearts refill
2 Votes
Am getting discourage in my Language, Help me out🙏🙏
1 Votes
Does skipping void Certificate?
2 Votes
Can anyone help me?
1 Votes
Assets not loading without trailing slash
1 Votes
Is the Coding Certificate Worth it??
3 Votes