Free Code Camp Bonfires

Tiffany White,

The first one was easy. The second one I needed serious help with. The third I did a ton of research on, and eventually came up with a solution. I am not sure if it is “eloquent” but it ran. What I am finding out is that the Bonfires, while they get harder, actually build upon skills you learned in the previous. So we are working with a ton of for loops and iterating over arrays, changing a string to an array, concatenating arrays, splitting them and splicing them to determine if words are palindromes and changing a sentence to Title Case.

I worked with Mark Pearyer on the Title Case Bonfire. Our solution was not elegant but he took charge and didn’t use the Gitter chat or Stack Overflow. We worked straight from the MDN docs. I am thinking of using Scratch js to refactor the code we wrote and debugging it in the browser.

One of the things Mark taught me was using a console.log to get results as you’re iterating your project. I knew this was a thing, I learned it early at Codecademy but forgot it was in my toolkit. Will be doing that from now on.

Here is a gist of one of my solutions. You’re free to refactor.

 

https://gist.github.com/twhite96/d093f42db2954b8a84a7#file-bonfire_longest_word-js (opens in a new tab)

 

 

 

The first one was easy. The second one I needed serious help with. The third I did a ton of research on, and eventually came up with a solution. I am not sure if it is “eloquent” but it ran. What I am finding out is that the Bonfires, while they get harder, actually build upon skills you learned in the previous. So we are working with a ton of for loops and iterating over arrays, changing a string to an array, concatenating arrays, splitting them and splicing them to determine if words are palindromes and changing a sentence to Title Case.

I worked with Mark Pearyer on the Title Case Bonfire. Our solution was not elegant but he took charge and didn’t use the Gitter chat or Stack Overflow. We worked straight from the MDN docs. I am thinking of using Scratch js to refactor the code we wrote and debugging it in the browser.

One of the things Mark taught me was using a console.log to get results as you’re iterating your project. I knew this was a thing, I learned it early at Codecademy but forgot it was in my toolkit. Will be doing that from now on.

Here is a gist of one of my solutions. You’re free to refactor.

 

https://gist.github.com/twhite96/d093f42db2954b8a84a7#file-bonfire_longest_word-js (opens in a new tab)

 

 

 

 

© tiff.RSS