Intermediate
Turn points into a line
The array points holds five [x, y] pairs. Build the path text with M for the first point and L for the others, and put it in the d of #line. Keep fill="none".
What Check tests
- The path has five points
- It starts at (10, 50) and ends at (210, 40)
- The path is not filled
- No NaN anywhere
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.