x
You solved the puzzle!
There's a new one coming soon 😉
July 3rd, 2024
Recreate the asterisk pizza slice!
What's missing in this code?
printPizzaSlice
();
function
printPizzaSlice
(
)
for
(
let
i =
1
; i <=
5
; i++)
let
str =
''
;
for
(
let
j =
; j <=
5
; j++)
str +=
;
}
console
.
log
(str);
}
}
Type or select from these options
i
j
0
1
j < i ? ' ' : '*'
j > i ? ' ' : '*'
'*'.repeat(i)
j <= i ? ' ' : '*'
CHECK