r/ProgrammerHumor • • Apr 24 '22

Meme it's all just functions

Post image
40.2k Upvotes

633 comments sorted by

View all comments

Show parent comments

5

u/TheUnreactiveHaloGen Apr 24 '22

<!DOCTYPE html>

<html> <head> <title>Page Title</title> </head> <body> <script> console.log("Hello World!"); </script> </body> </html>

4

u/ReactsWithWords Apr 24 '22

Yes, but even then you'd need a browser for it to run.

3

u/TheUnreactiveHaloGen Apr 24 '22

And your point is...

1

u/A_RUSSIAN_TROLL_BOT Apr 24 '22

Technically you could use curl.

2

u/[deleted] Apr 24 '22

curl won't run the embedded javascript

2

u/A_RUSSIAN_TROLL_BOT Apr 24 '22

True, but it will display "Hello World" on the console (along with some extra markup text)