Home » Javascript

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 »

Javascript var, let and const with examples.

Var, let and const keywords are used to declare variables in Javascript. Var is the oldest keyword for declaring variables. And let and const are introduced in ES6. Scope:Var: function scopelet: Block scopeconst: block scope like let but…

Read More »

How to make group chat in React-Native using firebase (Realtime database).

I was sceptical about Firebase with react-native. But after using Firebase with react-native, realised me that it’s awesome. Using Firebase is able to speed up mobile app and web app development . Here i am going to create a…

Read More »