Battery Warning
Use a JavaScript if statement to detect a low battery level and print a clear warning when the charge drops below 20 percent.
JavaScript
Challenge overview
- Format
- Logic Puzzle
- Category
- JavaScript
- Difficulty
- Beginner
javascriptconditionalsif-statementcomparison
Keep practicing
More coding challenges
Python · Beginner
Battery Warning in Python
Use a Python if statement to check a battery level and print a warning only when the provided value falls below the required threshold.
View challengeReact · Intermediate
Build a Character Limit Textarea
Build a typed React textarea that enforces a configurable character limit, reports the remaining count, and sends each accepted value upstream.
View challengeHTML & CSS · Beginner
Build a Coffee Shop Menu
Style a hand-printed coffee shop menu with a centered card, aligned item prices, separators, and a featured drink treatment.
View challenge

