Menu
Coddy logo textTech

Recap - True or False

Part of the Fundamentals section of Coddy's JavaScript journey — lesson 33 of 77.

challenge icon

Challenge

Beginner

Write a program that gets an input from the user, a number, 1 or 0. (given)

The program will output "T" if the input is 1 and "F" otherwise.

Try it yourself

let num = parseInt(inp); // Don't change this line
// Type your code below

All lessons in Fundamentals