We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07422cd commit 4a85dd1Copy full SHA for 4a85dd1
canvas.js
@@ -2,7 +2,7 @@
2
3
4
(function () {
5
- const EXPRESSIONS = [
+ const SAMPLE_EXPRESSIONS = [
6
'(a + b)*c - (x - y)/z',
7
'(a * b) - c + z / x',
8
'x - y + (c / (a + b))',
@@ -45,7 +45,7 @@
45
clearCanvas()
46
})
47
48
- document.getElementById('expression-input').value = EXPRESSIONS[Math.floor(Math.random() * EXPRESSIONS.length)]
+ document.getElementById('expression-input').value = SAMPLE_EXPRESSIONS[Math.floor(Math.random() * SAMPLE_EXPRESSIONS.length)]
49
setTimeout(() => {
50
document.getElementById('generate-tree').click()
51
}, 500)
@@ -70,4 +70,4 @@ function displayErrorMessage() {
70
`,
71
footer: '<a href="https://github.com/lnogueir/expression-tree-gen">Learn more</a>'
72
73
-}
+}
0 commit comments