Skip to main content
Commonmark migration
Source Link

#JavaScript (ES6), 30 bytes

JavaScript (ES6), 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

#JavaScript (ES6), 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

JavaScript (ES6), 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

added 6 characters in body
Source Link
apsillers
  • 3.8k
  • 21
  • 27

#JavaScript (ES6), 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

#JavaScript, 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

#JavaScript (ES6), 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

added 10 characters in body
Source Link
apsillers
  • 3.8k
  • 21
  • 27

#JavaScript, 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

#JavaScript, 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two of the form { "alert" : alert } using ES6 notation

  • the third a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

#JavaScript, 30 bytes

+alert((({alert}+{alert}+{}))) 

Outputs [object Object][object Object][object Object].

Works by creating three objects:

  • the first two are of the form { "alert" : alert } using ES6 notation {alert}

  • the third is a simple empty object

Then it uses + to concatenate them together, and all three have an identical expression as a string, [object Object].

The leading + is useless, only present to fill out the number of + characters, but is harmless to the output of the program.

Post Undeleted by apsillers
deleted 6 characters in body
Source Link
apsillers
  • 3.8k
  • 21
  • 27
Loading
Post Deleted by apsillers
Source Link
apsillers
  • 3.8k
  • 21
  • 27
Loading