(function () {
  function hi() {
    console.log("Hello, world! How's it going?");
    HAHA_I_HAZ_AN_ERROR_HERE_HEHE();
  }
  
  try {
    hi();
    return;
  } catch (err) {
    console.log("An error occurred--I can't say 'hi'...");
    return;
  } finally {
    console.log("And apparently I can't get out of the error handling phase, either... :(");
  }
})();
console.log("I'm finally out of this mess. Sigh...");

A simple "Hello, World!" program written in JavaScript (little playful...couldn't help myself ;)

If you really want it a little more serious (and just bask in the mere thought of sucking the fun out of everything), here it is:

console.log('Hello, world!');

Or, if you would prefer one that is far more feature-filled and complete, check this one out!