Skip to content

Commit

Permalink
Update Hello World.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nolecram authored Dec 3, 2024
1 parent 1118f12 commit 9592140
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Hello World.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@

// Function to display a greeting message
function displayGreeting() {
alert("Welcome to the Hello World program!");
}

// Call the greeting function
displayGreeting();

// Function to convert hours to seconds
function hoursToSeconds(hours) {
return hours * 3600;
Expand Down

0 comments on commit 9592140

Please sign in to comment.