RKRahul Kumarinrahul319.hashnode.dev·Mar 8, 2024 · 5 min readPractice question For Functional programming in JS LEVEL `1`Problems using map(), filter() and reduce(). Q1. Write an ES6 function that takes an array of numbers and returns an array with each number incremented by 3 using the map method. // Your ES6 function here const incrementNumbers = (numbers) => { ret...00
RKRahul Kumarinrahul319.hashnode.dev·Mar 8, 2024 · 3 min readInterview Questions related to reduce() in js.What is the purpose of the reduce() function in JavaScript? The reduce() function is used to reduce an array to a single value. It applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single ...00
RKRahul Kumarinrahul319.hashnode.dev·Mar 7, 2024 · 6 min readProps, props drilling and useContext HookWhat is Props? Props stands for properties. Props are used to transferdata from one component to other another. Props are read-only. Props are just like a function in JavaScript. Example of Props: App.jsx import React from 'react'; import './Ap...00
RKRahul Kumarinrahul319.hashnode.dev·Feb 13, 2024 · 2 min readSetting up MongoDB Using Compass For your project.Step 1. Go to MongoDB's official website i.e. https://www.mongodb.com/ Click on try free and create your account. Step 2. After Sign in, you will land on this page Just select Free M0, provider, region, and Name as per your preferences, As yo...00
RKRahul Kumarinrahul319.hashnode.dev·Jan 25, 2024 · 5 min readMastering Props and State in ReactjsAll about Props and State.. Why do we need props and a state? → In real-time applications, Components must deal with dynamic data. → Data could be something internal to a component or maybe passed from another component. So to bind the data to the c...00