Task: Given an integer,n , print its first 10 multiples. Each multiple n*i (where ) should be printed on a new line in the form: n x … Read more
Category: HackerRank
Day 4: Class vs. Instance (30 Days of Code)
Task: Write a Person class with an instance variable, age, and a constructor that takes an integer,initialAge, as a parameter. The constructor must … Read more
Day 0: Data Types (HackerRank – 10 Days of Javascript)
Task: Variables named firstInteger, firstDecimal, and firstString are declared for you in the editor below. You must use the operator to perform the … Read more
Day 3: Intro to Conditional Statements (HackerRank – 30 Days of Code)
Task: Given an integer, n, perform the following conditional actions: If n is odd, print Weird If n is even and in the inclusive range of 2 to 5, … Read more
Day 0: Hello, World! (HackerRank – 10 Days of Javascript)
Task: A greeting function is provided for you in the editor below. It has one parameter, parameterVariable. Perform the following tasks to complete … Read more
Day 2: Operators(HackerRank – 30 Days of Code)
Task: Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as a tip), and tax percent (the percentage … Read more
Day 1: Data Types(HackerRank – 30 Days of Code)
Task: Complete the code in the editor below. The variables i,d, and s are already declared and initialized for you. … Read more
Day 0: Hello, World.
Task: To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a … Read more