Skip to main content

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

Prints Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 4 bytes

+1/0

Prints Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 3 bytes

1e5

This solution is by molarmanful source. molarmanful, if you read this, please post your own answer with it and delete this part.

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 3 bytes

1e5

This solution is by molarmanful source. molarmanful, if you read this, please post your own answer with it and delete this part.

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

added 234 characters in body
Source Link
Unihedron
  • 1.3k
  • 14
  • 21

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 3 bytes

1e5

This solution is by molarmanful source. molarmanful, if you read this, please post your own answer with it and delete this part.

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 4 bytes

~$ cat main.js
+1/0
~$ nodejs main.js
Infinity

I think this is the shortest possible JS solution without ES6 :P

JavaScript, 3 bytes

1e5

This solution is by molarmanful source. molarmanful, if you read this, please post your own answer with it and delete this part.

[Edit removed during grace period]
Source Link
Unihedron
  • 1.3k
  • 14
  • 21
Loading
added 26 characters in body; edited body
Source Link
Unihedron
  • 1.3k
  • 14
  • 21
Loading
[Edit removed during grace period]; added 68 characters in body
Source Link
Unihedron
  • 1.3k
  • 14
  • 21
Loading
Source Link
Unihedron
  • 1.3k
  • 14
  • 21
Loading