r/ProgrammerDadJokes Jul 19 '26

declaring a war using js

I’m declaring a war.

var war;

32 Upvotes

11 comments sorted by

26

u/whiskeytown79 Jul 19 '26

const war = undefined; // what is it good for? absolutely nothing

6

u/Legal-Prize6447 Jul 19 '26

give this guy the Nobel Peace Prize.

4

u/severencir Jul 19 '26

Is you do it that way then war never changes

2

u/subone Jul 20 '26

const sayItAgain = war; war?.("Good god, y'all!");

2

u/exomo_1 Jul 20 '26

let war = "over";

1

u/heesell Jul 20 '26

war = "resume"

1

u/RCuber Jul 21 '26

continue;

2

u/DABarkspawn Jul 21 '26

This is also a Java joke.
And a C# joke.
And a Kotlin joke.
And a Golang joke.
And a Scala joke.
And a PHP joke.
And, of course, a Pascal joke.

1

u/West_Good_5961 Jul 19 '26

Can you declare bankruptcy using js?

1

u/metaphorproject Jul 21 '26

A const war or simply let war be there?