Basic Algorithm Scripting - Factorialize a Number

Tell us what’s happening:
Hi there i am novice in algorithm. Can someone help me to solve this basic problem

  **Your code so far**
function factorialize(num) {

return num;
}

factorialize(5);
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Basic Algorithm Scripting - Factorialize a Number

Link to the challenge:

Yeah, but I guess you can try to write some code for the start.
Or try to ask more specific question.

Without it it’s kinda hard to give you right directions.

Well, lets say I give you number >>> 5

And you need to calculate 5!

With pen and paper.

Try to describe your actions. Where do you start?

click get a hint for the full answer

I recommend against just copying the answers. Getting the answer is not the point. Practicing figuring out code is the whole point of the challenges.