diff --git a/basics-01-starting-code/app.js b/basics-01-starting-code/app.js index e814851..e924058 100644 --- a/basics-01-starting-code/app.js +++ b/basics-01-starting-code/app.js @@ -7,6 +7,16 @@ const app = Vue.createApp({ vueLink: "https://vuejs.org", }; }, + methods: { + outputGoal() { + const randomNumber = Math.random(); + if (randomNumber < 0.5) { + return "Learn Vue!"; + } else { + return "Master Vue!"; + } + }, + }, }); app.mount("#user-goal"); diff --git a/basics-01-starting-code/index.html b/basics-01-starting-code/index.html index 7772f0b..5bb4f7d 100644 --- a/basics-01-starting-code/index.html +++ b/basics-01-starting-code/index.html @@ -17,7 +17,7 @@

My Course Goal

-

{{ courseGoal }}

+

{{ outputGoal() }}

Learn more about Vue.