Menu
CoddyTech

Meet Vue

Part of the Fundamentals section of Coddy's Vue journey. Lesson 1 of 55.

Vue connects a page to JavaScript data. In this small excerpt, the displayed greeting comes from a variable instead of being repeated in the HTML.

const greeting = 'Welcome, reader';
// In a Vue template:
// <h1>{{ greeting }}</h1>

This journey uses Vue 3.5.22 single-file components and the Composition API. The supplied app is ready to run: the button changes data and Vue updates its text. After editing a file, press Run preview to refresh the preview; checking your work is a separate grading action.

challenge icon

Challenge

Easy

Press Run preview to open the finished garden card. Click Join the team twice and watch the volunteer count change. You do not need to edit any code. Use Check or Run code to grade the task; that is separate from refreshing the preview.

Try it yourself

<!doctype html><html><head><meta charset="UTF-8"><title>Vue practice</title></head><body><div id="app"></div><script type="module" src="./main.js"></script></body></html>
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Fundamentals