Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I fix this error "missing; before statement" in javascript?

How can I fix this error "missing; before statement" in javascript ?

alt text

My HTML Page : http://etrokny.faressoft.com

My Javascript Code : http://etrokny.faressoft.com/javascript.php

like image 750
faressoft Avatar asked Oct 19 '25 03:10

faressoft


1 Answers

When assigning a function to a variable, you need a semicolon after the function.

Example: var func = function() { return false; };

like image 70
Tom van der Woerdt Avatar answered Oct 20 '25 17:10

Tom van der Woerdt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!