Return Largest Numbers in Arrays – FreeCodeCamp Solutions

In this post, you will find the solution for the Bonfire challenge in FreeCodeCamp to Return Largest Number in Arrays.

We have to find the largest number from each sub array and return an array containing only the largest numbers from the sub arrays. Continue reading Return Largest Numbers in Arrays – FreeCodeCamp Solutions

Find the Longest Word in a String – FreeCodeCamp Solutions

In this post, you’ll see a solution for finding the longest word in a string.

Here we split the string into array elements of words based on white space. Then we use two dimensional array method to count number of letters in each words and use if statement to return the biggest count.

We can also return longestWord to print the longest word found in the string.

Continue reading Find the Longest Word in a String – FreeCodeCamp Solutions

Search Text for Exact Matches – CodeAcademy JavaScript Track

A few days ago, I posted about FreeCodeCamp. Like I expected, I’m still addicted to this course and find learning programming very easy. I have completed the jQuery track and now just started with JavaScript track on CodeAcademy ( yes, FCC uses CodeAcademy to help you learning ).

So, the For Loops section on JavaScript track of CodeAcademy teaches you how write JavaScript to find name from a text. But, the logic they follow in the tutorial is not enough to find exact matches from the text.

In the end of the tutorial, CodeAcademy challenges learners to fine-tune this program to make sure it only finds exact matches for your name.

And I figured it out. Check out the code. Continue reading Search Text for Exact Matches – CodeAcademy JavaScript Track

FreeCodeCamp – An Excellent Resource To Learn JavaScript

Today was a good start for me. I stumbled on to reddit comment that lead me to freecodecamp.com. Having been interested in learning JavaScript and trying to learn it from SoloLearn and TheNewBoston, finding FreeCodeCamp felt like the universe showing me the path to where I wish to be. Continue reading FreeCodeCamp – An Excellent Resource To Learn JavaScript