HackerRank Day 3: Arrays 10 days of javascript solution

In this HackerRank Day 3: Arrays 10 days of javascript problem Complete the getSecondLargest function in the editor below. It has one parameter: an array, nums, of n numbers. The function must find and return the second largest number in nums. HackerRank Day 3: Arrays 10 days of javascript problem solution. ‘use strict’; process.stdin.resume(); process.stdin.setEncoding(‘utf-8’); … Read more

HackerRank Day 2: Loops 10 days of javascript solution

In this HackerRank Day 2: Loops 10 days of javascript problem you need to Complete the vowelsAndConsonants function in the editor below. It has one parameter, a string, s, consisting of lowercase English alphabetic letters. HackerRank Day 2: Loops 10 days of javascript problem solution. ‘use strict’; process.stdin.resume(); process.stdin.setEncoding(‘utf-8’); let inputString = ”; let currentLine … Read more

HackerRank Day 2: Conditional Statements: Switch 10 days of javascript solution

In this HackerRank Day 2: Conditional Statements: Switch 10 days of javascript problem you need to Complete the getLetter(s) function in the editor. It has one parameter: a string, S, consisting of lowercase English alphabetic letters HackerRank Day 2: Conditional Statements: Switch 10 days of javascript problem solution. ‘use strict’; process.stdin.resume(); process.stdin.setEncoding(‘utf-8’); let inputString = … Read more

HackerRank Day 2: Conditional Statements: If-Else 10 days of javascript solution

In this HackerRank Day 2: Conditional Statements: If-Else problem you need to Complete the getGrade(score) function in the editor. It has one parameter: an integer, score, denoting the number of points Julia earned on an exam. It must return the letter corresponding to her grade according to the rules: HackerRank Day 2: Conditional statements If-Else … Read more