• Topics
Logo
Logo
  • Topics

Topics

  • About
  • Slides
  • Example #1: Hello Napier
  • Example #2: Screen Interaction
  • Example #3: Screen Output
  • Example #4: Interacting with the document
  • Example #5: Graphics: Canvas Colour
  • Example #6: Graphics - Draw a Circle
  • Example #7: Audio - Generate a Tone
  • Example #8: Audio - A Simple Chip-Tune
  • Example #9: Audio - A Theremin
  • Example #10: Cellular Automata
  • C64 Emulator

Example #3: Screen Output

Output some information from JS to the screen, i.e. generate some HTML.

let d = new Date();
document.body.innerHTML = "<h1>Today's date is " + d + "</h1>"