What is find() & findIndex in JavaScript | JavaScript Tutorials in Hindi | Interview Question #38
What is find() & findIndex in JavaScript | JavaScript Tutorials in Hindi | Interview Question #38 Hi, I'm Rohit Verma, Welcome to our YouTube Channel Still Learning. About this video :- In JavaScript, the find() method is a built-in function available on arrays. It is used to retrieve the first element in an array that satisfies a given condition. The find() method executes a provided callback function once for each element in the array until it finds a matching element. Once a match is found, the find() method immediately returns the value of that element. If no matching element is found, undefined is returned. It's important to note that the find() method only returns the first matching element, even if there are multiple matches in the array. If you need to find all matching elements, you can use other array methods like filter(). The find() method is supported in most modern browsers and in Node.js. However, if you need to support older browsers, you may need to use a polyfill or alternative approaches like a for loop or the Array.prototype.indexOf() method. JavaScript Tutorials in Hindi | JavaScript Interview Questions Playlist:- https://www.youtube.com/watch?v=M5gwqfRGI9A&list=PLpl0GEINwjARM0w6q_e3skmIgU4Fri_L1 React JS Tutorials in Hindi Playlist:- https://www.youtube.com/watch?v=TWLDQSo30JM&list=PLpl0GEINwjASRRy7WlpCAYasEpp3XXjT_ HTML Tutorials in Hindi Playlist:- https://www.youtube.com/watch?v=TpJu8K5xaAU&list=PLpl0GEINwjAS_rCqrP38GPAfpah8gbrQY Watch Another Videos π SSC MTS 2017 Most Important GK Top 100 Questions with Answers https://www.youtube.com/watch?v=34G4v82777s All Countries Prime Ministers List, Most Important GK https://www.youtube.com/watch?v=EK03zZmzlzw SSC MTS 2017 Most Important GK/General Science Top 50 Questions with Answers https://www.youtube.com/watch?v=xCpxCkNifuk SSC MTS 2017 Top 30 Most Asked Spelling Mistakes in English MTS Previous Exam https://www.youtube.com/watch?v=Cl0beEZGX-0 Social Links:- YouTube : https://www.youtube.com/@StillLearning Facebook : https://www.facebook.com/stilllearning.in Twitter : https://twitter.com/stilllearningin #javascripttutorials #interviewquestions #javascriptinterviewquestions #javascripttutorialsinhindi #StillLearning #TutorialsInHindi -~-~~-~~~-~~-~- Please watch: "#1 Complete Responsive Website using REACT JS & Bootstrap with Source Code 2024 π₯π₯" https://www.youtube.com/watch?v=TmlpFSSKT3s -~-~~-~~~-~~-~-
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.