Tag: 10Days Js challange

Day 4: Create a Rectangle Object (Hackerrank problem)

Objective In this challenge, we practice creating objects. Create a object with given length, width, perimeter, area. Task Complete the function in the editor. It has two parameters:  a and b. It must return an object modeling a rectangle that…

Read More »

Find the second largest element from array in javascript (Hackerrank problem)

Function Description Complete the getSecondLargest function in the editor below. getSecondLargest has the following parameters: int nums[n]: An array of integers number. (The largest number may be dublicate) Returns The second largest number

Read More »