+ 2

what is wrong with this function?

function myFunction(a, b) { return a * b; } var x = myFunction(395, 45); document.write(X); im trying to get it to return me the multiple of 395 and 45 and it wont do it for the love of God :-/

20th May 2017, 8:50 PM
Dunja Cetkovic
Dunja Cetkovic - avatar
2 ответов
+ 4
variable name is case sensitive. try writing x
20th May 2017, 8:52 PM
ifl
ifl - avatar
+ 2
RIGHT!! omg i knew that, but i didnt notice the X was capitalised, im a dumbass, thank you anyway -_-
20th May 2017, 9:14 PM
Dunja Cetkovic
Dunja Cetkovic - avatar