Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/views/Quiz/QuizFinalQuestion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@ export default {
},
data() {
const jsCode = `function calculateAnswer(){
return 100;
// this is where you write your code
// good luck!
}
// we check your answer by looking at the output var
var output = calculateAnswer();`;
const pyCode = `def calculateAnswer():
return 100
# this is where you write your code
# good luck!

# we check your answer by what you print
print(calculateAnswer())`;
return {
Expand Down