DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
fizzbuzz in one line javascript
for
(
let
i
=
0
;
i
<
100
;
)
console
.
log
(
(
++
i
%
3
?
''
:
'fizz'
)
+
(
i
%
5
?
''
:
'buzz'
)
||
i
)
Source by codeburst.io #
PREVIOUS
NEXT
Tagged:
#fizzbuzz
#line
#javascript
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit