Skip to content
◎
English
English
Français
Deutsch
Italiano
Español
Dansk
Svenska
Norsk bokmål
Magyar
Português
Русский
Română
Slovenčina
日本語
简体中文
العربية
हिन्दी
தமிழ்
తెలుగు
ಕನ್ನಡ
മലയാളം
ગુજરાતી
বাংলা
मराठी
Subjects
Code examples
Library reference
Computer Programming
Python
Java
C++
C
Go
PHP
Kotlin
Ruby
R
Scala
Groovy
Rust
Dart
Mojo
Zig
Julia
Swift
C#
JavaScript
TypeScript
Tutorial menu
×
Subjects
Computer Programming
Maths
Planned
Chemistry
Planned
Lesson contents
Programming resources
All languages
Code examples
Library reference
Programming languages
Python
Java
C++
C
Go
PHP
Kotlin
Ruby
R
Scala
Groovy
Rust
Dart
🔥
Mojo
Zig
Julia
Swift
C#
JavaScript
TypeScript
Tutorials
/
Computer Programming
/
JavaScript
/
Examples
Code examples
Work out the answer first, then compare it with the program output.
Pack lunch bags
→
Give change
→
List bus arrivals
→
Count parcels after a delivery
→
Advertisements