Keep the lesson open on your other screen. Your edits stay in this workspace, separate from the practice activity. Sign in to save and reload a private account draft across devices, or share a snapshot when you need help.
Pause whenever you want to try a change. You can return to the lesson at any time.
You are signed in, but video access needs attention. Check your account access. Your saved work is kept.
Video walkthroughs are included with an active Code Zone membership. The written lesson and practice are free.
Video settings & progress
Your lesson progress
Reading & walkthrough: not started
Empty: not started. Yellow: in progress. Green: complete. Marking the whole activity complete does not replace your test results. These circles save in this browser for this pilot.
Start the video to enable typing controls.
YOUR TURN
Code along: Convert temperatures with Rob
Write convertFtoC(tempF) to calculate (tempF - 32) * 5 / 9 and return Celsius. Test 32 and 212; store a returned result in a variable. Your work saves separately from the lesson editor. Run experiments without a graded output requirement.
Load an example, edit it and run it. Word wrap is enabled.
Your check results
Work in VS Code instead
Copy the starter into a file named practice.js in VS Code. If Node.js is installed, open the terminal in that folder and run node practice.js. Compare the output with the task above. Automated challenge checks are available in the browser editor.
Code example
example.jsjavascript · example
// Code along: Convert temperatures with Rob// Follow the video and build the program yourself.
Lesson reference
Examples load into this same code-along only after you confirm replacing your code.
Build the Fahrenheit-to-Celsius converter
Work through 3 focused steps. Read the explanation, type each requested change and check it before moving on. Your own code carries forward.
The mini-lesson opens in a new tab. Your own code carries forward; each step has a focused check and an optional hint.
Write convertFtoC(tempF). It should calculate (tempF - 32) * 5 / 9 and return the numeric Celsius value. Test freezing and boiling: 32°F becomes 0°C and 212°F becomes 100°C.
Use the workspace for the video prompt. The next practice supplies a broken implementation to repair. Keep labels and console.log calls outside the conversion function.
Original challenge plan
example.jsjavascript · example
function convertFtoC(tempF) { // Calculate Celsius and return it here.}console.log(convertFtoC(32));console.log(convertFtoC(212));