Skip to content

codeadamca/javascript-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

JavaScript Hello World

JavaScript is a scripting computer programming language commonly used to create interactive effects within web browsers.

This sample file will display a "Hello World!" message when the button is clicked.

Steps

  1. Create a new HTML file and name it hello-world.html.

  2. Add the following HTML:

    <!doctype html>
    <html>
    <head>
        <title>JavaScript Hello World!</title>
    </head>
    <body>
    
        <h1>JavaScript Hello World!</h1>
    
        <button onclick="alert('Hello World!');">Clck Me</button>
    
    </body>
    </html>
  3. Save the file and test in a browser.

  4. Try uploading this file to your hosting and then test it using your domain name. It will look something like this:

    http://www.domain.com/folder/hello-world.html
    

Full tutorial URL:
https://codeadam.ca/learning/javascript-hello-world.html


Repo Resources


About

A sample JavaScript which displays a "Hello World" message when a button is clicked.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages