Created
December 19, 2020 02:00
-
-
Save Xevion/5d148d79855d3d321c9db587226c2219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arithmetic from "@/arithmetic"; | |
import utils from "@/utils"; | |
export default { | |
methods: { | |
getProblem() { | |
console.log(this); | |
let problem = this.problems[utils.methods.getRandomInt(0, this.problems.length)]; | |
return problem.method(problem.difficulties[problem.current])(); | |
} | |
}, | |
data: () => { | |
return arithmetic.data().problems | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment