1 min to read
Hackerrank 10 Days of JavaScript Day 2: Conditional Statements
Are you up for the 10 Days of JavaScript challenge on Hackerrank? This challenge is a collection of ten tasks that focus on JavaScript and, to some extent, HTML and CSS.
In this series, I will be sharing my solutions to the challenges. I will be sharing the solutions in JavaScript. I will also be sharing the solutions in HTML and CSS for the challenges that require it.
Day 2: Conditional Statements: If-Else
- An integer value score is provided for a students test
- 0 ≤ score ≤ 30
- It must return the letter corresponding to grade
Test Case of If-Else HackerRank Solution
Day 2: Conditional Statements: Switch
- A string is provided where its length is 1 ≤ s ≤ 100
- Given the following legend, return the correct value based on the first letter
Test Case of Switch HackerRank Solution
Day 2: Loops
- Given a string of s of any length
- Output, in order, the vowels of that string on each new line
- Right after, output, in order, the consonants of that string on each new line