I'm trying to write this:
console.log((250 - ((60 / 3) - (60 / 1))) / 60);
But I get an error, the log should output 3.5
3.5
when I save the doc it deletes the brackets so it looks like this:
console.log((250 - (60 / 3 - 60 / 1)) / 60);
Grateful as always for some help
Zigs
hi,
when executing both of these I get '4.83333333333' and no error, don't know where your 3.5 comes from. however , console.log will (always?) return 'undefined' I think any js function that does not return a value will do same.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.