Why code doesn't works

Tell us what’s happening:
Describe your issue in detail here.
In this challenge, I tried one-line code for factorial but it doesn’t works

  **Your code so far**

function factorialize(num) {
return (num<=1)? 1: num*factorialize(num-1);

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0

Challenge: Factorialize a Number

Link to the challenge:

you’re missing the closing brackets on your function

1 Like

I’m just concentrating on the code I forgot to put the closing syntax

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.