Factorialize a Number, freeCodeCamp review Basic Algorithm Scripting, lesson 2

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=qJlduVHmJZ4



Duration: 5:45
2,381 views
47


In this challenge, we factorialize a number. I achieved this using a for loop which checks if the number passed in to our parameters is greater than our counter(i). As long as it is, it multiplies i by our variable total which we declare and initilize to 1. As it goes through the loop our total is updated until 'i' is equal to our number passed into the 'num' parameter.




Other Videos By We Will Code


2017-02-28Make Dead Links using the Hash Symbol, freeCodeCamp review html & css, lesson 23
2017-02-28Nest an Anchor Element within a Paragraph, freeCodeCamp review html & css, lesson 22
2017-02-28Link to External Pages with Anchor Elements, freeCodeCamp review html & css, lesson 21
2017-02-28Make Circular Images with a Border Radius, freeCodeCamp review html & css, Lesson 20
2017-02-28Add Rounded Corners with a Border Radius, freeCodeCamp review html & css, lesson 19
2017-02-27Check for Palindromes, freeCodeCamp review Basic Algorithm Scripting, lesson 3
2017-02-27Add Borders Around your Elements, freeCodeCamp review html & css, lesson 18
2017-02-27Size your Images, freeCodeCamp review html & css, lesson 17
2017-02-26Add Images to your Website, freeCodeCamp review html & css, lesson 16
2017-02-26Specify How Fonts Should Degrade, freeCodeCamp review html & css, lesson 15
2017-02-26Factorialize a Number, freeCodeCamp review Basic Algorithm Scripting, lesson 2
2017-02-26Reverse a String, freeCodeCamp review, Basic Algorithm Scripting, lesson 1
2017-02-26Import a Google Font , freeCodeCamp review html & css
2017-02-26Set the Font Family of an Element, freeCodeCamp review html & css
2017-02-25Change the Font Size of an Element, freeCodeCamp review html & css
2017-02-25Style Multiple Elements with a CSS Class, freeCodeCamp review html & css
2017-02-25Use a CSS Class to Style an Element, freeCodeCamp review html & css
2017-02-25Use CSS Selectors to Style Elements, freeCodeCamp review html & css
2017-02-25Change the Color of Text, freeCodeCamp review html & css
2017-02-25Delete HTML Elements, freeCodeCamp review html & css
2017-02-25Fill in the Blank with Placeholder Text, freeCodeCamp review html & css



Tags:
freeCodeCamp
beginner
javascript
algorithm scripting
tutorial
coding
factorialize a number