0

In javascript is i was ginna set a var. Can it be "var one = five * (5);" or would it take it as a number and fail to execute

trying to put all three of my money counters in one page but im haveing trouble with it executing the code and i have doudle checked everything and compared it to my original still seems to fail though https://code.sololearn.com/WKbfjH4PkDV1/?ref=app

23rd Mar 2018, 8:47 PM
Brennan Woodroof
Brennan Woodroof - avatar
4 Answers
+ 3
no variables names doesn't mean anything
23rd Mar 2018, 9:27 PM
Toni Isotalo
Toni Isotalo - avatar
0
You could do var one = 5 * 5; You canā€™t write the number as a word
23rd Mar 2018, 8:51 PM
Ariela
Ariela - avatar
0
no the five in the math is a var fron another code coming from a text input im asking if the word one after var is picked up as a number 1
23rd Mar 2018, 8:57 PM
Brennan Woodroof
Brennan Woodroof - avatar
0
lol i found out what was wrong i didnt complete the code all the way for the retrieve i tested a function halfway with input data not be displayed but taken in i will have the code posted later as ii have to style it with css
23rd Mar 2018, 10:10 PM
Brennan Woodroof
Brennan Woodroof - avatar