Skip to main content
added 4 characters in body
Source Link
Jonathan
  • 541
  • 4
  • 10

#JavaScript ES6, 34 27 25 bytescharacters

f=>f=='google'?gΔ:f.length

Throws a ReferenceError on gΔ for google.

alert((f=>f=='google'?g:f.length)('test'))
alert((f=>f=='google'?Δ:f.length)('test'))

#JavaScript ES6, 34 27 25 bytes

f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

#JavaScript ES6, 34 27 25 characters

f=>f=='google'?Δ:f.length

Throws a ReferenceError on Δ for google.

alert((f=>f=='google'?Δ:f.length)('test'))

#JavaScript ES6, 34 27 25 bytes

f=>f=='google'?g:f.length
f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

#JavaScript ES6, 34 27 25 bytes

f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

#JavaScript ES6, 34 27 25 bytes

f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

added 1 character in body
Source Link
Jonathan
  • 541
  • 4
  • 10

#JavaScript ES6, 34 27 25 byesbytes

f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

#JavaScript ES6, 34 27 25 byes

f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

#JavaScript ES6, 34 27 25 bytes

f=>f=='google'?g:f.length

Throws a ReferenceError on g for google.

alert((f=>f=='google'?g:f.length)('test'))

added 8 characters in body
Source Link
Jonathan
  • 541
  • 4
  • 10
Loading
added 1 character in body
Source Link
Jonathan
  • 541
  • 4
  • 10
Loading
deleted 2 characters in body
Source Link
Jonathan
  • 541
  • 4
  • 10
Loading
Source Link
Jonathan
  • 541
  • 4
  • 10
Loading