Closed saurabhvyas closed 8 years ago
What is in test.js
?
console.log('test'); just this
I don't see where you reference Expression
, then. :(
I am sorry Here is the code again
<!DOCTYPE html>
<head>
<meta charset="utf-8"/>
<script src="algebra-0.2.5.min(1).js"></script>
err I am getting :
![capture2](https://cloud.githubusercontent.com/assets/6899784/17942222/254cdac6-6a54-11e6-8cc6-4407676365a7.PNG)
<script>
var expr = new Expression("x");
expr = expr.subtract(3);
expr = expr.add("x");
console.log(expr.toString());
</script>
<title> Err. Interrupter </title>
</head>
<body>
<h2> What is 2x + 3 = 5 ? </h2>
</body>
</html>
My folder structure looks something like this :
err I am getting
You need to define Expression.
Try adding var Expression = algebra.Expression.
Okay algebra.Expression solved the problem It would be great if can update the docs so other users dont face similar problem
It is in the documentation. Thanks!
I just downloaded algebra.min.js and referenced it in my index.html file then I tried one of the examples from your website but I keep getting this error on firefox
here is my index.html