Heh... but Javascript is so permissive you can just start writing psuedocode and it'll probably be valid!
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
eval('alert("Yep")')
for(i=0;i<100;i++){
console.log("Yep")
}
console.log("uh-huh")
Like Dave from Storage Wars?
"Uh huh."
const notThree = 1 + '2';
And it will do... something.
Perhaps more than one thing, who can know?
Hello World isn't that difficult to write.
He never said it had to be a useful program.
People should be able to do this, at least for simple programs. We used to do it all the time.
Everyone should be able to do a hello world without IDE
Sorry bro, if you think JavaScript is difficult, then you're just too weak.
NP, dude. As someone who learned JavaScript in the dark ages, when IE had to be a consideration for everything you did, writing a JS program now is trivial.
w3school
MDN ftw, screw stackoverflow.
MDN is better at everything than w3school, except for SEO.
Yeah... Then again I just use the DuckDuckGo bang !mdn
and it searches MDN directly.
There's also devdocs.io which can be indispensable when using a lot of popular utility libraries and frameworks in the same project. Just having a single page with all the relevant docs is just a real blessing.
Any time I need to learn something about JS, I go to W3Schools to wrap my head around the basics, then over to MDN for current best practice.
I remember visiting W3S like 10-15 years ago when first learning DOM manipulation etc at uni. But nowadays there's nothing it can give me that MDN can't, that I need to know.
I think I'd be okay up until you pulled intellisense, at which point I would literally deflate like a balloon.
Dude JS is ez cmon.
Do it in php and say its JavaScript, most people don't even know that there is a difference.
$facts
"Every time you try to run your code the pendulum will drop lower until...."
Extremely loud crash as pendulum is rocketed into the ground by all the failed run attempts
Var x = 1+"two"
Console.Log(x)
Done! I did it. I wrote a program.
Not gonna run with those capital letters
It was never specified to run without errors.
console.log("You had one job.");
Do people not read books anymore?
hello world (: (smiley being the wrong way was on purpose)
He got so upset he put on glasses and grew facial hair!
Because that’s how long he’s been trying to solve it
var a = 0
Done
Just used he internet archive to open stackoverflow
Ok... He didn't say it had to be complicated or anything. Just make a magic 8 ball.
hey, an empty file is also a valid program. it does nothing. (like me :p)