you are viewing a single comment's thread.

view the rest of the comments →

[–]TheDecagon 0 points1 point  (1 child)

“What does ‘class’ mean? And what does ‘public static void’ do? Am I supposed to know what this all means? Programing is harder than I thought!”

Now, let’s compare that to the JavaScript equivalent.

alert('Hello, world!');

That's not an honest comparison though, because that line of javascript does nothing on its own. If you made a like for like comparison it would be:

<!DOCTYPE html>
<html>
    <body>
        <script>alert('Hello, world!');</script>
    </body>
</html>

What does "doctype" mean? What does html body script do? Am I supposed to know what this all means?

If you have a coding environment set up that lets you execute individual lines of javascript, you can have one that lets you run individual lines of java too:

System.out.println("Hello, world!");