I am making a website using HTML5 Javascript and Django 1.8 , Python 3.5 and I am getting the following error
Uncaught SyntaxError: Unexpected identifier
class User {
constructor(nothing) {
//doNothing
}
function myFunction(p1, p2) {
return p1 * p2; // The function returns the product of p1 and p2
}
function afunc() {
var mydata = "kk";
return (mydata);
}
}
var abc = new User();
var kk = abc.myFunction(1, 2);
console.log(kk);
EDIT
Is there any debugger for Javascript in Pycharm latest version(2018) like we have a debugger for Java in netbeans we can add breakpoints see values of variables etc