How to fix "Syntax error, expected expression but got else" in javascript
I keep getting this error from my code, I dont know why ive tried to fix it many times but it did not work
if ( d == false ) {
if ( x == false ) {
num1 = 1;
}
else {
num2 = 1;
}
else {
if ( x == false ) {
num1 = num1 + e
e = e * 10
}
else {
num2 = num2 + e
e = e * 10
}
}
}
Voters
DJWang
What language is this?
VMTU
javascript
DJWang
@VMTU I'm not that familiar with Javascript, but here is a link you can use: https://sentry.io/for/javascript/?utm_source=google&utm_medium=cpc&utm_campaign=9731804142&content=428112714665&utm_term=debug%20javascript%20script&gclid=Cj0KCQjwiYL3BRDVARIsAF9E4GfZKq9kszKQlzA8Dp7JUHjmCrdBmmrv7ZvJCjw2bUSyapOATbLZXu0aAvThEALw_wcB
Is this better:
this gave me "expected expression, got }"
Ok
https://repl.it/@VMTU/MULTI-CALC#index.html
Thank you!