100 Days of Code: Day 58

Home / Technology / Web Development / 100 Days of Code: Day 58
I finally finished the ES6 section* and remaining JavaScript algorithms! I'm so excited to finally be ready to start on the projects tomorrow.

[vc_row css=”.vc_custom_1526680382655{margin-top: 15px !important;margin-bottom: 60px !important;padding-right: 10% !important;padding-left: 10% !important;}”][vc_column][vc_progress_bar values=”%5B%7B%22label%22%3A%22Progress%22%2C%22value%22%3A%2258%22%2C%22color%22%3A%22blue%22%7D%5D” title=”100 Days of Code, Round 1″ percentage_value=”27″ title_color=”#3e3e3e” bar_color=”#1b7da9″ track_height=”20px” track_color=”#e7f6fc” m=”20″ extra_class=”” units=”%”][/vc_column][/vc_row][vc_row][vc_column][vc_custom_heading text=”Goals For Today:” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes”][ultimate_icon_list icon_size=”16″ icon_margin=”20″][ultimate_icon_list_item icon_type=”custom” icon_img=”id^4091|url^https://www.blissfullemon.com/wp-content/uploads/2018/05/done.png|caption^null|alt^null|title^done|description^null”]Finish the ES6 section of Free Code Camp[/ultimate_icon_list_item][ultimate_icon_list_item icon_type=”custom” icon_img=”id^4091|url^https://www.blissfullemon.com/wp-content/uploads/2018/05/done.png|caption^null|alt^null|title^done|description^null”]Finish the remaining JavaScript algorithms and prepare to start on the projects tomorrow[/ultimate_icon_list_item][/ultimate_icon_list][vc_column_text]Ladies and Gentlemen, sound the trumpets. I have FINALLY finished those JavaScript algorithms and the ES6 section!

Well… Sort of. I ran into a bug in one of the ES6 problems, but everything else is complete. I know my solution is also correct for the problem that isn’t technically submitted yet, so once I receive word that the bug has been fixed, I can go back in, submit, and make it 100% official.

The good thing is I don’t have to wait to get started on the projects. SO that’s exactly what I plan to do tomorrow!

Another Important Lesson

Today I learned another really important lesson about naming conventions for functions. One of the algorithm challenges that I had left required me to create a function that accepts two arguments and returns the sum of those arguments. If the second argument wasn’t provided, I had to instead call another function that would take an argument and return the sum of the two numbers.

I must have been feeling cheeky when I decided to name that second function. The name was so close to the original function that I ended up accidentally mistyping it, which caused a massive infinite loop when I tried to run the tests. When I say massive, I mean I completely crashed Chrome, it would not allow me to refresh the page, and even with my debugger, it took at least 45 minutes to finally get it to stop so I could fix my typo.

Did I learn from my mistake right away? Of course not! Just for the fun of it, I did it all over again 20 minutes later.

Afterward, I renamed the function entirely and made sure I double-checked that I hadn’t typed the other name before running any further testing.

My Thoughts on ES6

Now that I have finished the ES6 section, I have a much better understanding of the changes that were made from JavaScript. I even have to admit that I’ve found myself using let and const, as well as arrow functions (believe it or not) on a somewhat regular basis. I’m still not completely comfortable with a lot of it, but it’s growing on me.

Do I plan to abandon JavaScript completely and write all my code in ES6? Definitely not. Will I continue trying to learn even more so I can become more comfortable with ES6? Yes.[/vc_column_text][/vc_column][/vc_row]

Let's chat!

%d bloggers like this: