Talk:Hello World (JavaScript)

From LiteratePrograms
Jump to: navigation, search

There are some problems:

  1. This is hello world and some cycle. Why cycle? Simple hello world is "alert('Hello World!');" (only in web browser). Alert function is web browser function.
  2. Which javascript is this? We have some versions of javascript (ECMAScript, Javascript = (some web browser dialects));
  3. Why this example prints some "<br>"? This is only concrete html. HTML4.01? Why not xml/others?
  4. Pure ECMAScript "Hello World!" is "print('Hello World!');".

--Skim 10:31, 10 March 2006 (PST)

To answer your questions: the first hello world article did a loop and so others thought it would be a good idea too. I'm going to suggest we have separate language categories for ECMAScript, JavaScript, and JScript. I agree that the use of unclosed tags is best avoided. Deco 11:22, 10 March 2006 (PST)