Skip to content

Instantly share code, notes, and snippets.

@bastienapp
Last active September 22, 2020 06:42
Show Gist options
  • Save bastienapp/74f327e24bb113401fd3b6b8cebabe31 to your computer and use it in GitHub Desktop.
Save bastienapp/74f327e24bb113401fd3b6b8cebabe31 to your computer and use it in GitHub Desktop.

Before this kata begins, you need to:

  • Install Visual Studio Code
  • Install the plugin Live Share
  • Log to Live Share with your GitHub account
  • Open the shared project supplied by your trainer

Hello World

  • Create an empty file index.html
  • Add a HTML 5 structure to index.html
  • In the <body>, add a <script> tag
  • In the <script> tag, add the code console.log('Hello World!');
  • Open the index.html file in a browser
  • Open the browser console (F12)
  • Verify that you can read 'Hello World!'

Bonus

  • Add a prompt to ask a name
  • Show Hello {name}! instead of 'Hello World!'
  • Add a condition: if the name is empty, show 'Hello World!', else show Hello {name}!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment