Free Code Camp Challenges

My Free Code Camp profile

Reverse a String

Reverse a string correct code

Correct code: function reverseString(str) { return str.split('').reverse().join(''); }

After completing the reverse a string challenge, I overall understand strings better and how they can take on different forms. For example, the first "helpful link" really helped to explain this to me, as it goes through how strings can be string literals, template literals, etc. I am still confused about strings but this challenge helped me to better understand them as well as the process of splitting them.

Factorialize a Number

Factorialize a number correct code

Correct code: function factorialize(num) { if (num === 0) { return 1; } return num * factorialize(num-1); } factorialize(5);

I struggled a lot with the factorialize a number challenge. The arithmetic operator link that was included kind of ended up just confusing me more, and I had to get one of my computer science friends to help me. I do understand now that there are multiple ways to get this process done. It was really hard for me to grasp the general concept of factorializing, with the process of multiplying the number by each consecutive number minus one. I think why I struggled so much with this challenge is that it was hard for me to understand before I even started coding.