Back to Browse

Difference between normal & arrow function | JavaScript Tutorials in Hindi | Interview Question #26

4.0K views
Apr 17, 2023
16:55

Difference between normal & arrow function | JavaScript Tutorials in Hindi | Interview Question #26 Hi, I'm Rohit Verma, Welcome to our YouTube Channel Still Learning. About this video :- In JavaScript, there are two types of functions: normal functions and arrow functions. Syntax: Normal function syntax uses the function keyword, followed by the function name, parameter list, and function body. Arrow function syntax uses a shorter syntax that omits the function keyword, and instead uses an arrow between the parameter list and function body. Binding of this: Normal functions create a new this binding for every function call, based on how the function is called. This can be confusing in some cases, especially when dealing with nested functions and callbacks. Arrow functions, on the other hand, inherit the this binding from their parent scope. Use of arguments: Normal functions have access to a special variable called arguments, which is an array-like object that contains all the arguments passed to the function. Arrow functions, on the other hand, do not have access to arguments. Overall, arrow functions can provide a more concise and clearer syntax, especially for simple functions, while normal functions are still useful for more complex scenarios that require access to arguments or dynamic this binding. 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 formats

Video Formats

360pmp422.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Difference between normal & arrow function | JavaScript Tutorials in Hindi | Interview Question #26 | NatokHD