Game Overview
Part of the Fundamentals section of Coddy's JavaScript journey — lesson 53 of 77.
Challenge
EasyFizzBuzz is a simple and classic programming game often used to teach basic logic and control flow. The game involves iterating through numbers from 1 up to a specified limit. For each number:
- If the number is divisible by 3, the program outputs "Fizz."
- If the number is divisible by 7, it outputs "Buzz."
- If the number is divisible by both 3 and 7, it outputs "FizzBuzz."
- Otherwise, it simply outputs the number.
Let's start with a simple welcome message.
You are given the input this program needs: num
For starters, just output the welcome message:
Welcome to FizzBuzz!Try it yourself
let num = parseInt(inp); // Don't change this line
// Type your code belowAll lessons in Fundamentals
4Operators Part 2
Logical Operators Part 1Logical Operators Part 2Recap - Simple LogicLogical Operators Part 3Type Coercion7Bill Split Calculator
Welcome MessageCalculating The Tip And Total2Variables
NumbersStringBooleanNaming ConventionsEmpty VariablesRecap - Initialize VariablesConstants3Operators Part 1
Arithmetic OperatorsModulo OperatorArithmetic ShortcutsComparison OperatorsStrict vs Loose EqualityRecap - Simple Math6Basic IO
OutputOutput with VariablesType Conversion - Part 1Type Conversion - Part 2Recap - Till 120Recap - True or False