I finally made it to the Bonfire section on Freecodecamp. I was very excited until I hit the first real one. It seems simple enough, just reverse a string. They suggest reading material from the Mozilla Developer Network and suggest that you may need to convert the string into an array before you reverse it.
Seems simple enough. I first decided to use the waypoint samples to guide the way I write the syntax. But that didn’t work. I see that when doing the waypoints, you miss out on understanding the syntax because you don’t fully type in all the code to make you progress to the next wayline. You just learn to understand the basics.
I read the literature that they suggest (in case you’re interested it’s: Global String Object, String.split(), Array.reverse(), Array.join() ) . It’s a little too technical for me to comprehend most of it, and that made me feel stupid for about a good 10 minutes.
I went back to the bonfire and read the instructions. Then I read them line by line, as I was taught to do in my Project<code> class, and it started to make sense, the gist of what some of the steps that I have to do.
- turn the string “hello”, into an array.
- return it so that it reads “olleh”.
- it must be returned in a string.
I went back to seeing the waypoint sample lessons and looking at the code we aren’t allowed to alter and started putting that into my text editor and nothing. I was tempted to jump on the FCC Gitter Channel and ask for help, but decided to google the exercise and see if anyone had the same concerns I did in Quora or some other forum. Instead I was pleasantly surprised to come across Wulkan’s blog. Wulcan’s blog had the answer, but most importantly (and sacred) to me, it explained the Mozilla literature in plain English! I sat there are read Wulcan’s paraphrased definitions and reread the MZD information and it’s starting to make sense to me.
Off I go to try to see if I can come a full circle. I was too excited to wait until I figured it out to share.