0Pricing
Javascript for Kids · Lesson

Showing the Result

Print it.

Showing the Result is a free Javascript for Kids lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Javascript for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Show the Answer! 📢

The final step of our Temperature Converter is showing the result in a fun, clear way! 📢🌡️

console.log('Let us show the result! 📢')

A Simple Print 🖨️

The easiest way to show an answer is console.log. 🖨️

let result = 77
console.log(result)

Add Words 🗨️

A number alone is boring. Add words so the user understands! 🗨️

let result = 77
console.log('The answer is', result, 'degrees!')

Show Both Numbers 🔄

It's friendly to show the input AND the result together. 🔄

let celsius = 25
let fahrenheit = 77
console.log(celsius, 'C =', fahrenheit, 'F')

Add a Degree Symbol 🌡️

We can include the little ° symbol and emojis to make it pretty! 🌡️

let f = 77
console.log('It is ' + f + '°F 🌡️')

Round Before Showing 🎯

Long decimals look messy. Round the result before showing it! 🎯

let c = (98 - 32) * 5 / 9
console.log('Rounded:', Math.round(c), 'C')

Hot or Cold Message 🔥❄️

Make it fun! Tell the user if it's hot or cold based on the number. 🔥❄️

let c = 30
if (c > 25) {
  console.log('Wow, it is HOT! 🔥')
} else {
  console.log('A bit chilly! ❄️')
}

A Result Function 🛠️

Let's build a helper that converts AND shows the result in one go! 🛠️

function show(c) {
  let f = c * 9 / 5 + 32
  console.log(c, 'C =', f, 'F 🌡️')
}
show(20)

Many Results 📋

We can show a whole table of temperatures at once! 📋

function show(c) { console.log(c, 'C =', c * 9 / 5 + 32, 'F') }
show(0)
show(10)
show(20)

A Nice Header 🎀

Start your output with a title so it looks neat and friendly! 🎀

console.log('=== Temperature Result === 🎀')
console.log('25 C = 77 F')

Full Converter 🎮

Here is the complete converter showing a beautiful result! 🎮

let celsius = 28
let fahrenheit = Math.round(celsius * 9 / 5 + 32)
console.log('=== Result === 🌡️')
console.log(celsius + '°C = ' + fahrenheit + '°F')
if (celsius > 25) console.log('It is hot! 🔥')

Quick Check ✅

One last brain test! 🧠

Converter Complete! 🌟

Amazing! You built a full Temperature Converter! 🎉

  • Learned two scales 🌡️
  • Used the formula ✨
  • Asked the user 💬
  • Showed the result 📢

You are a temperature wizard! 🧙

console.log('Temperature Converter: COMPLETE! 🌟🧙')

Frequently asked questions

Is the “Showing the Result” lesson free?

Yes — the full text of “Showing the Result” is free to read here on the web, and the Javascript for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Javascript for Kids course, upgrade to CoddyKit PRO.

What will I learn in “Showing the Result”?

Print it. You practise Javascript for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Javascript for Kids?

No prior experience is required. Javascript for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Showing the Result” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Javascript for Kids lesson?

Yes. Every Javascript for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Two Temperature Scales
  2. The Formula
  3. Asking the User
  4. Showing the Result
← Back to Javascript for Kids