1. Home
  2. /
  3. Makecode Typing Test
  4. /
  5. Hello World in MakeCode (JavaScript view)

Hello World in MakeCode (JavaScript view) - Makecode Typing CST Test

Skip to main content
CodeSpeedTest
Languages
Start TypingJump into a test — pick any languageAdaptive TrainingUnlock chars as you master themPractice DrillsFocused sessions targeting weak spotsDaily ChallengesNew coding challenges every dayRace ModeCompete against others in real timeAI OpponentRace against an AI at your WPM levelTournamentsLive coding speed tournamentsArcade GamesZType, Overkill Survival, Glyphica & moreGamificationXP, coins, badges & quests
LeaderboardGlobal rankings for every languageCertificatesEarn verifiable Bronze / Silver / Gold certsActivityDaily streaks & historical analyticsProfileYour stats, badges & achievements
Browse Languages500+ languages with real code examplesBlogTips, guides & deep divesFree ToolsWPM calculator, typing speed report & moreFAQCommon questions answeredGetting StartedNew to CodeSpeedTest?AboutOur story & missionSupportGet help — Pro users get priorityContactGet in touch with the team
Pricing
Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
CodeSpeedTest

Improve your coding speed, code accuracy, and programming syntax WPM with practice sessions across 500+ programming languages.

Quick Links

HomeAboutFeaturesGetting StartedLanguages

Legal & Support

Pro ⚡ PricingContactPrivacy PolicyTerms of Service

Connect

CodeSpeedTest on GitHubCodeSpeedTest on TwitterEmail CodeSpeedTest

© 2026 CodeSpeedTest. All rights reserved.

Hello World in MakeCode (JavaScript view) — Makecode Code

A simple MakeCode project that shows 'Hello World' on the micro:bit LED display. Blocks generate the JavaScript code below.

basic.showString("Hello World")

Makecode Language Guide

Microsoft MakeCode is a block- and text-based coding platform for creating interactive programs, games, and hardware projects using microcontrollers like micro:bit, Circuit Playground Express, and more.

Primary Use Cases

  • ▸Teaching coding and computational thinking
  • ▸Creating microcontroller-based projects
  • ▸Prototyping simple games and simulations
  • ▸Interactive electronics with sensors and LEDs
  • ▸STEM workshops, classrooms, and maker labs

Notable Features

  • ▸Block-based drag-and-drop programming
  • ▸Text editor support for JavaScript and Python
  • ▸Hardware simulation environment
  • ▸Extensive hardware extensions and libraries
  • ▸Cross-platform web-based IDE with offline apps

Origin & Creator

MakeCode was developed by Microsoft around 2016 as an educational platform to teach coding and electronics to students using a low-barrier, interactive environment.

Industrial Note

Primarily used in education, STEM learning, and maker projects; not intended for large-scale commercial software development.

Quick Explain

  • ▸Visual block-based editor with drag-and-drop coding for beginners.
  • ▸Text-based JavaScript or Python mode for advanced users.
  • ▸Supports interactive hardware, LED displays, sensors, and input devices.
  • ▸Real-time simulator to test code without hardware.
  • ▸Used for teaching coding, electronics, and STEM concepts in classrooms and at home.

Core Features

  • ▸Blocks - visual programming elements
  • ▸JavaScript/Python - text coding alternative
  • ▸Simulator - test programs virtually
  • ▸Hardware integration - micro:bit, Circuit Playground Express, LEGO, etc.
  • ▸Extensions - add new sensors, games, or devices

Practical Examples

  • ▸Blinking LED with button input
  • ▸Temperature-sensor logging
  • ▸Simple micro:bit game (rock-paper-scissors)
  • ▸Animated display on LED matrix
  • ▸Robotics control with multiple motors

Comparisons

  • ▸MakeCode vs Scratch: hardware-focused vs general animation/game
  • ▸MakeCode vs Processing.py: block/hardware vs creative coding desktop
  • ▸MakeCode vs Arduino IDE: beginner-friendly vs text-heavy hardware programming
  • ▸MakeCode vs Tinkercad CodeBlocks: more hardware options vs 3D modeling integration
  • ▸MakeCode vs PXT: same Microsoft platform, different UI versions

Strengths

  • ▸Beginner-friendly with block interface
  • ▸Supports transition to text-based coding
  • ▸Immediate visual feedback with simulator
  • ▸Strong integration with hardware and sensors
  • ▸Extensive tutorials and examples for education

Limitations

  • ▸Limited advanced programming features
  • ▸Not suitable for professional software development
  • ▸Simulator may not perfectly match hardware behavior
  • ▸Large projects can become hard to manage
  • ▸Dependent on browser or MakeCode app for editing

Project Structure

  • ▸main.ts or main.py - main code file
  • ▸project.json - project metadata
  • ▸assets/ - images, sounds, or sprites
  • ▸extensions/ - optional libraries for hardware
  • ▸README.md - documentation or notes

Basic Concepts

  • ▸Block - visual code unit representing actions or logic
  • ▸Loop - repeat instructions continuously
  • ▸Event - triggered by input (button, sensor, or time)
  • ▸Variable - stores data for program state
  • ▸Simulator - tests code virtually before deploying

More Makecode Typing Exercises

Scroll Text on micro:bitDisplay a Heart IconBlink an LEDButton A Pressed MessageCount from 1 to 5Display Random NumberTilt DetectionShow Multiple IconsTemperature Display

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher