ES6 #1: Spread & Rest Operator in ES6 in JavaScript in Hindi | Technical Suneja

Technical Suneja
29 Oct 202115:30

Summary

TLDRIn this special lecture on advanced JavaScript, the speaker discusses the concepts of Rest and Spread operators, which are frequently used in JavaScript ES6 and React. The video covers how Rest operators combine multiple values into arrays, while Spread operators break combined values into individual elements. The speaker demonstrates these concepts with various coding examples, explaining how they can be used in functions, arrays, and objects. Viewers are encouraged to engage by liking, sharing, and commenting on the video, and the speaker promises future content based on viewer feedback.

Takeaways

  • 👋 The video begins with a warm welcome and introduction to JavaScript concepts, specifically the rest and spread operators.
  • 📚 The rest operator allows us to handle multiple arguments as an array in functions and is useful for combining elements.
  • 🤔 Both rest and spread operators may look similar, but they serve different purposes in handling arrays and objects.
  • 🔢 A function example `addNumbers` is created to explain how the rest operator gathers extra arguments and processes them as an array.
  • 🧑‍💻 The video explains how using the rest operator with three dots (`...`) can capture excess arguments passed into a function.
  • 🚀 The spread operator does the opposite of rest—it breaks an array or object into individual elements or properties.
  • 👨‍🏫 A comparison of how rest combines elements and how spread divides elements is provided using real-world examples.
  • 🎯 Object handling is demonstrated, showcasing how the spread operator can be used to update and clone objects.
  • 🛠️ The video emphasizes the importance of rest and spread operators, especially in modern JavaScript and frameworks like React.
  • 💡 The lecture concludes by encouraging viewers to practice using these operators and suggests commenting for future topics.

Q & A

  • What is the purpose of the 'rest' operator in JavaScript?

    -The 'rest' operator in JavaScript allows you to represent an indefinite number of arguments as an array. It is used in functions to gather all the remaining arguments into an array, making it easier to handle variable-length parameters.

  • How does the 'spread' operator differ from the 'rest' operator?

    -The 'spread' operator expands elements of an iterable (like an array or object) into individual elements, while the 'rest' operator collects multiple elements into a single array. The key difference is that 'rest' gathers and 'spread' spreads or unpacks data.

  • How can the 'rest' operator be used in function parameters?

    -The 'rest' operator can be used in function parameters to accept multiple arguments. For example, `function addNumbers(...nums)` will allow the function to handle any number of arguments, storing them in an array `nums`.

  • In the provided script, what example is given to demonstrate the 'rest' operator?

    -The script uses the function `addNumbers` with the 'rest' operator to accept multiple numbers as arguments. The operator is demonstrated by passing `2, 4, 5` to the function and combining these numbers into an array for further processing.

  • How is the 'spread' operator used in the context of objects in JavaScript?

    -The 'spread' operator in objects allows you to copy properties from one object to another. For instance, if you have an object `student`, you can create a new object `newStudent` using `...student`, which will copy all properties of `student` to `newStudent`.

  • What is one practical use case for the 'spread' operator in arrays?

    -A practical use of the 'spread' operator in arrays is to combine multiple arrays into a single array. For example, `[...array1, ...array2]` will merge `array1` and `array2` into one array.

  • What happens if you pass more arguments than expected when using the 'rest' operator?

    -When you pass more arguments than expected to a function using the 'rest' operator, the extra arguments are collected into the 'rest' array. For instance, if a function expects three parameters but receives five, the first three parameters will be handled separately, and the remaining two will be stored in the 'rest' array.

  • How does the script explain handling multiple names using the 'spread' operator?

    -The script explains handling multiple names using the 'spread' operator by showing an example where three names are passed to a function and then printed. The 'spread' operator is used to pass multiple arguments that are combined into one array for output.

  • What is the significance of destructuring in JavaScript as discussed in the script?

    -Destructuring in JavaScript allows you to unpack values from arrays or properties from objects into distinct variables. This can be useful for extracting specific values directly without needing to access them through indexes or keys repeatedly.

  • What is the relationship between the 'spread' operator and updating object values in JavaScript?

    -The 'spread' operator can be used to update object values by creating a copy of the original object and then overriding specific properties. For example, `const newStudent = { ...student, name: 'Vijay' }` creates a new object with the same properties as `student` but updates the `name` property.

Outlines

00:00

🚀 Understanding the Rest and Spread Operators in JavaScript

In this introduction, the speaker welcomes viewers to a video on advanced JavaScript topics, specifically focusing on the Rest and Spread operators. These operators are frequently used in modern JavaScript, especially with ES6, and are integral in frameworks like React. The video aims to clarify the differences between Rest and Spread operators, with examples in arrays and objects, promising to offer clarity on their functionality.

05:01

💡 Example of Rest Operator in JavaScript

The speaker provides a practical example of the Rest operator by defining a function called 'addNumbers' that adds multiple numbers passed as arguments. The example demonstrates how to handle multiple parameters and use the Rest operator to gather all remaining arguments. The speaker walks through how the operator collects excess arguments into an array and sums them, highlighting its importance in handling dynamic inputs in functions.

10:03

🔍 Understanding Spread Operator with Objects and Arrays

Here, the speaker transitions to explaining the Spread operator, showcasing how it performs the opposite function of the Rest operator. While Rest combines elements, Spread splits them. The speaker gives examples using names to show how Spread can divide elements into individual variables or parameters. The explanation emphasizes how Spread simplifies operations like passing multiple arguments to functions in a cleaner, more efficient manner.

15:05

🎯 Combining Rest and Spread in JavaScript Operations

In this section, the speaker dives into combining Rest and Spread operators to achieve more flexible code. They explain how objects and arrays can be destructured and merged dynamically using these operators. The example showcases object cloning and modifying specific properties within an object using Spread. The section concludes with a demonstration of how these operators allow for powerful manipulations in code, especially in React and JavaScript frameworks.

Mindmap

Keywords

💡Rest Operator

The 'rest operator' in JavaScript is represented by three dots ('...'). It allows a function to accept an indefinite number of arguments as an array. In the video, the speaker explains how the rest operator is used to handle multiple arguments in a function, bundling them into a single variable.

💡Spread Operator

The 'spread operator', also represented by three dots ('...'), is used to expand elements of an array or object. In the video, the speaker explains how the spread operator works in the opposite way of the rest operator, spreading out elements for easy manipulation and usage, such as combining or copying objects.

💡JavaScript ES6

ES6, or ECMAScript 6, is a major update to JavaScript that introduced several new features, including the rest and spread operators. The speaker emphasizes the importance of ES6 in modern JavaScript development, especially in frameworks like React, where these operators are commonly used.

💡Function Parameters

Function parameters refer to the values that are passed into functions when they are called. The video demonstrates how to pass multiple parameters using the rest operator, which groups them into an array for further operations like summation.

💡Objects

Objects in JavaScript are collections of key-value pairs. The video covers how the rest and spread operators can be used with objects to manipulate properties, such as adding or overriding values within objects like 'students' in the given examples.

💡Combining Arrays/Objects

Combining arrays or objects is a frequent task in programming. The speaker illustrates how the spread operator helps merge arrays or objects, such as combining two objects into a new one while maintaining all properties. This method is particularly useful for handling large data structures.

💡Arguments

In JavaScript, 'arguments' refer to the values passed to a function. The video explains how the rest operator collects all arguments passed to a function into an array, allowing flexible handling of variable numbers of inputs.

💡Function Return

A function return is the value that a function sends back after execution. In the video, the example function 'addNumbers' returns the sum of its arguments, showcasing how return values can be generated from functions using rest operators to handle flexible inputs.

💡Advanced JavaScript

Advanced JavaScript refers to the more sophisticated aspects of the language, such as using operators like rest and spread, which are part of ES6. The video is aimed at explaining these advanced features in a simple way, emphasizing their importance in frameworks like React.

💡React

React is a popular JavaScript library for building user interfaces, especially single-page applications. The speaker mentions how the rest and spread operators are often used in React, particularly when dealing with component props, state, and managing objects in a more efficient way.

Highlights

Introduction to the concept of Rest and Spread operators in JavaScript, explaining their importance in ES6 and React.

Overview of how Rest and Spread operators are used to handle arrays and objects in JavaScript.

Simple example of a function 'addNumbers' demonstrating how multiple parameters can be passed and handled using the Rest operator.

Explaining how additional arguments passed to the function are grouped using the Rest operator.

Highlighting the advantage of using Rest operator to handle unknown or varying number of arguments in a function.

Introduction to the Spread operator and how it differs from Rest by breaking down combined elements instead of grouping them.

Example showcasing Spread operator to split an array and pass its elements individually as function arguments.

Explanation of combining elements using Spread, focusing on its utility in JavaScript's array and object manipulation.

Demonstration of destructuring objects and arrays using Rest and Spread operators, making code cleaner and more readable.

Use case of the Spread operator to clone objects and update properties in a non-mutating way.

Destructuring multiple elements from arrays into variables using Rest for flexible handling of data.

Explaining the utility of Spread operator for combining arrays and avoiding mutation of original data structures.

Example of using Spread operator in object literals to update values while preserving immutability.

Summary of how Rest and Spread operators simplify code by reducing the need for manual looping and concatenation.

Conclusion encouraging viewers to experiment with both operators for handling complex data structures effectively.

Transcripts

play00:00

हेलो हाय एव्रीवन कैसे हैं आप लोग उम्मीद

play00:02

करता हूं कि अच्छे होंगे स्वागत है आपका

play00:04

एक और नई वीडियो के अंदर दिस इज

play00:07

स्पेशल लेक्चर नंबर थ्री और आज हम बात

play00:10

करने वाले हैं अरेस्ट और स्प्रेड ओपरेटर

play00:12

के बारे में एडवांस जावास्क्रिप्ट की जब

play00:14

बात आती है या फिर यह सिक्स की बात आती है

play00:16

तो यह दोनों बहुत ज्यादा यूज होते हैं अगर

play00:19

आप रिएक्ट में काम कर रहे हो वहां भी आपको

play00:20

देखने को यह मिलेगा तो आप समझते हैं और जो

play00:24

सिमिलैरिटी बहुत ज्यादा दिखती है दोनों एक

play00:27

जैसे लगते हैं तो क्या डिफरेंस है वह

play00:29

समझेंगे अब जैसे रेस्टोरेंट प्लेट है यह

play00:32

दोनों जो यूज होते हैं वह एयर ऑब्जेक्ट

play00:34

में बहुत ज्यादा यूज होते हैं तो पहले हम

play00:36

समझते हैं अरेस्ट और स्पीड को फिर

play00:38

ऑब्जेक्ट समझेंगे बाय रोड ऑफिस वीडियो

play00:40

आपको यह पूरा क्लियर हो जाएगा कौन से

play00:42

ट्यूमर आपसे प्रॉमिस है यह सिक्स के अंदर

play00:44

कौन सा टॉपिक होना चाहिए तब में लिखना मैं

play00:47

सी एक्स वीडियो बनाऊंगा जो आपका में

play00:49

लिखोगे ठीक है चलिए समझते हैं इसको और साथ

play00:52

मौजूद थे करेंगे या कोट करेंगे और साफ टू

play00:55

डेकोरेट करते रहेंगे क्या डिफरेंस जा रहे

play00:58

हैं ठीक है अगर अच्छा लगा तो लाइक करना को

play01:00

शेयर करना और कमेंट करना ठीक है सबसे पहले

play01:03

रेस्ट कोशिश करते हैं और मैंने कहा कि

play01:06

रेस्टोरेंट जूस प्लेट है दोनों में अरे और

play01:09

ऑब्जेक्ट में दोनों यूज होता है तो पहले

play01:11

की बात करते हैं इसको चटनी देखेंगे सबसे

play01:14

पहले बात करते हैं अरेस्ट की ठीक है तो

play01:17

होता क्या-क्या परपस है बहुत सारे लोग

play01:20

कंजूस जाते हैं जब एडवांस जावास्क्रिप्ट

play01:22

कोड देखते हैं तो इसे मैं सबसे पहले एक

play01:26

फंक्शन क्रिएट कर लेता हूं तो

play01:30

हैं तो एक ऑप्शन बना लेते हैं हम जिसका

play01:33

नाम देते हैं ऐड नंबर्स ठीक है यह फंक्शन

play01:38

कुछ नंबर से सीट करेगा इसको हम सिंपल यहां

play01:41

पर कॉल कर लेते हैं

play01:42

और यहां पर मैं पैरामीटर पास कर देता हूं

play01:46

245 ठीक है 300 मीटर है रिसीव करेंगे

play01:52

अच्छा

play01:53

ठीक है और यहां पर मैं करने वाला हूं इन

play01:56

तीनों कसम यह काम करते हैं प्रिंट करवा

play02:00

सकते हैं तो हम कर देते हैं तो यह फंक्शन

play02:02

रिटर्न का करने वाले मुझे एक प्लस बी प्लस

play02:05

सी ठीक है अब यह रिटर्न करेगा तो मुझे

play02:08

यहां पर इसका रिजल्ट सपोर्ट करवाना पड़ेगा

play02:10

तो यहां पर मैं एक और सिगरेट कर लेता हूं

play02:12

रिजल्ट और यहां पर कंट्रोल लगा लेता हूं

play02:17

अच्छा ठीक है जी तो यहां पर जैसा आप देख

play02:21

रहे हैं सेम जैसी रिजल्ट प्रिंट करवाएंगे

play02:22

तो मुझे यहां पर सेव कर लेते हैं तो यहां

play02:25

पर यह साड़ी ना चुका है तो हमने सिंपल है

play02:27

फंक्शंस बनाया ऐड नंबर्स हमने नंबर्स को

play02:30

यहां भेजा और रिटर्न क्या किया सचिन का

play02:33

सम् यहां पर दिया आरडीएस में आ गया रिजल्ट

play02:35

में आ प्रिंट हो गया जो मुझे मेरी साइट

play02:37

ट्विटर पर ट्वीट है आउटपुट अब मुझे करना

play02:40

फॉर एग्जांपल मैं आप नंबर पास करता हूं यह

play02:43

स्टार्स मेरे पास कर दिया मुझे बताया कि

play02:45

यह अजय को कुछ हुआ नहीं और फटाफट इन रहेगा

play02:48

बट यहां पर एट बने कुछ नहीं हुआ पास आपने

play02:51

कर दिया अब मान लीजिए मैं आपको एक चीज

play02:53

दिखा तो आपको बहुत इंटरेस्टिंग आपने नंबर

play02:55

बड़ा लिए जब आप फंक्शन को कॉल करना टाइम

play02:57

कॉलिंग आप कुछ नंबर बड़ा लिए तो क्या कर

play03:00

सकते हो मैं आपको यह बता रहा हूं पहले

play03:03

टेस्ट मैच में क्या था वही बताऊंगा बट यह

play03:05

साइड में आया अरेस्ट ऑपरेटर अब आप यह कर

play03:08

सकते यहां पर एक दो तीन फलीस्तीनी लगाने 3

play03:10

डॉट लगानी है यह 3 डॉट हम यूज करते हैं

play03:13

अरेस्ट बेर स्प्रेड में भी ठीक है बट 3 से

play03:17

ज्यादा लगाने भी लगाओगे और यहां पर कुछ भी

play03:19

दे दो अदर दुर्गा काली अदर तो जैसे आप यह

play03:22

करोगे कुछ होगा नहीं और वही रहेगा पटाखे

play03:24

यहां पर जाऊंगा अभी कंसोल डॉट लॉक

play03:29

अधर चेक करेंगे तो यहां पर देखिए 89 गया

play03:33

तो मतलब जो एबीसी था उसके लिए अपने 257

play03:37

दिया जो बच गए उसको मैंने अदर्स बोल दिया

play03:39

तो अगर मैं आपको प्रिंट करवा लूंगा तुझे

play03:42

क्या मिलेगा जो भी आधार नंबर से है देखिए

play03:44

यहां पर खैर रिटर्न हो गया जीरो पर क्या

play03:46

है एट वन पर क्या है नाइन मैं चाहूं तो

play03:48

खाली इंडिआजनवरी प्रिंट करवा सकूं जैसे कि

play03:50

जीरो तो यहां पर देखिए एटा गया ठीक है तो

play03:55

मैं चाहता हूं वन पर है

play03:57

है तो बना गया कैनाइन है यह तीन दो यह समय

play04:00

तो इस तरीके से आपका अरेस्ट ऑपरेटर काम

play04:03

करते हैं हम 3 डॉट यूज करते हैं सिंपल

play04:06

फंक्शन बनाया है कॉलिंग के टाइम पर कुछ

play04:08

नंबर पास किए तो जो भी जैसे उच्च जानवरों

play04:11

का मीटर पास किए हैं और टाइम और कॉलिंग तो

play04:14

यहां पर थी पैरामीटर्स के रिसीवर जो बच गए

play04:17

उन्होंने क्या किया डॉट कर दिया तो बहुत

play04:19

जो बच गए हैं एक और नो ऐसा कंबाइन यह जो

play04:22

डेट का क्या करता है जो नंबर सप्लाई कर

play04:24

रहे हो उसे कंबाइन कर देगा और कंबाइंड

play04:27

करने के बाद आप अब वह एक दे रही है उससे

play04:30

उसको ऐड कर निकालना होगा तो आप इस तरीके

play04:32

से निकालो कि वरना आप सारे नंबर से प्रिंट

play04:35

करवा लोगे अब आप कितने ही पास करो फोन करो

play04:40

यह नोट तो देखो आप मैजिक ठीक है बट यह तो

play04:45

यह इसके अंदर है जो यह ब्यूटी है अरेस्ट

play04:46

ऑपरेटर की ऐसे काम करता है बट मान लीजिए

play04:49

अगर आप यूज कर रहे हैं एस फाइल तो वहां पर

play04:51

था एक और वेस्ट होता है तो जैसे जॉइंट

play04:54

करेंगे तो क्या करते हैं वह यह साइड की

play04:56

बात कर रहा हूं मैं वहां पर क्या है तथा

play04:58

इस तरीके से आपको जीरो वन जितने भी नंबर

play05:00

है वहां पर इनकी बात नहीं कर रहे जो एबीसी

play05:03

है जितने भी नंबर आपने यहां पर जो

play05:07

अरगुमेंट है जितनी भी आप पास कर रहे संसद

play05:09

के अंदर का वह सारे इस तरीके से आपके आ

play05:11

जाते थे फिर आपको जैसे ऑपरेशन परफॉर्म

play05:13

करने आप कर सकते हैं बट यह ठीक है मैं

play05:15

क्या दिया एक नई चीज दी आप सिगरेट कर सकते

play05:17

अपने पैरामीटर्स को जो आपके अदर एलिमेंट्स

play05:20

है उसके साथ जैसे चाहे वैसे ही सकते हो तो

play05:23

तिजौरी बेसिक एग्जांपल ऑफ फॉरेस्ट और अभी

play05:25

मैं क्या करता हूं इसको कंट्रोल जारी कर

play05:27

लेता हूं कि मुझे ही अच्छा लग रहा है ठीक

play05:29

है नेक्स्ट नमस्ते साइज स्प्रिट नाम से

play05:33

पता चल रहे हैं अब जैसे मैंने आपको बताया

play05:34

बहुत सिंपल हिंदी में कि हो क्या रहा है

play05:38

यहां पर कि जो आपका लुट

play05:42

को अरेस्ट है उसमें यह जो भी आप एलिमेंट

play05:44

पास करे वह कम हो जाते हैं इस प्रेड में

play05:46

क्या होगा उल्टा होगा इसका अपोजिट होगा जो

play05:48

कंबाइन है उस कम डिवाइड तोड़ेंगे कैसे

play05:51

प्रेस करेंगे देखते हैं तो क्या करते हैं

play05:53

सबसे पहले मैं एक पहली बना लेता हूं नीम

play05:57

यहां पर हम देते हैं मैं अपना नाम देता

play06:00

हूं अजय

play06:02

जो मनुष्य ठीक है और विवेक अब आपको समझा

play06:07

रहा हूं अभी एडिटर में बात करें जो भी थम

play06:09

ऑब्जेक्ट की बात नहीं कर रहे रेस्टोरेंट

play06:11

बहुत ज्यादा यूज होता है अरे के इसमें और

play06:14

ऑब्जेक्ट इसमें तो एग्जांपल्स ओं थे

play06:15

रेमेडी का देख रहे हैं यहां पर हमने थे

play06:17

विवेक ठीक है तो यहां पर हमारे पास नेम

play06:21

सोंग हैं कुछ ने हमने यहां पर एक सिंपल

play06:23

में फंक्शंस बनाने वालों और गेट नेल्स के

play06:26

नाम से ठीक है

play06:28

नेम वन नेम टू नेमस इन तो यह फंक्शन का

play06:34

यह तीन नाम रिसीव करेगा इस फंक्शन का काम

play06:38

यह है तो मैं क्या करूंगा मैं

play06:40

कि Idea में यहां पर कैसे पास करें

play06:44

इससे 0

play06:50

अजय कुमा नेमस मल्टीपल तरीके से पास करने

play06:53

के बाद मुझे समझाना है आपको स्प्रेड

play06:55

ओपरेटर तो इसलिए एग्जांपल कुछ ऐसा रहा था

play06:58

कि आप रिलेट कर पाओ

play06:59

नीति sarchu ठीक है प्रतिदिन अपने पास

play07:03

किया वह पता है कि आपके बारे में तीन

play07:05

एलिमेंट है आपके पास कि यहां पर और यहां

play07:06

पर सिंपल का कराने वाले हो कुछ नहीं

play07:08

कंट्रोल कर देंगे पहले करूंगा मैं नेम वन

play07:12

तो यहां पर मेरा नेम वन है वह प्रिंट हो

play07:15

जाएगा सिर्फ कर लेते हैं तो अजहर चुका है

play07:17

साथ मुझे पेंट करवाना है नेम टू

play07:21

ए नेम 3

play07:25

अच्छा ठीक है तो तीनों नाम आ चुके हैं तो

play07:27

यह थी के तरीका बुरा नहीं है यह भी सही है

play07:29

पटना कम ऐसे करने की जरूरत नहीं है हम

play07:31

आपको नया तरीका बताते हैं यह सब मत करो

play07:33

यार अच्छा नहीं है

play07:35

डॉटर नॉट क्वाइट सिंपल है पास कर दो

play07:39

है तब या हुसैन है और फूड आपका नेट को

play07:42

जॉइंट कर देता हूं ताकि आपके लिए कर पाओ

play07:44

मैं दोबारा से कॉपी करता हूं दोबारा कॉल

play07:46

करते हैं पर इस बार कुछ अलग तरीके से जावत

play07:49

सिर्फ ही यह सिर्फ एक बहुत ही कर सकते हो

play07:51

इस चीज एडवांस में तो तीन डॉटर्स तो जयंती

play07:56

एंड नेमस किया तो मुझे को शेयर और फिर ठीक

play07:57

रहेगा सिखा दूंगा आपको अपडेट नहीं किया

play08:02

है और यहां पर हाई नीस पास कर रहा हूं ठीक

play08:04

है तो यहां पर देखिए इस तरीके से आपको

play08:06

क्योंकि नेल्स है रह गया तो यहां पर गया

play08:09

यहां पर देखो आप जीरो पंजा अनुज आया विजय

play08:12

आया तीसरा कुछ इस तरीके से मिलेगा कैसे

play08:14

पास कर सकते हो प्रतिदिन यू ब्यूटी राइट्स

play08:17

प्लेट में कि आपने जो भी आप ऐसा है पास कर

play08:21

रहे हो ऐसा कंबाइन पास करें यह करते थे

play08:23

कंबाइंड रिसीव कर रहे थे ठीक है तो उस

play08:25

प्रेस में क्या होता है जो भी आप

play08:26

एलिमेंट्स अप्लाई करते थे यहां पर टुकड़ों

play08:28

में कर दिया कंबाइन रहता है यहां पर

play08:30

कंबाइन उसको टुकड़ों में अमेज़न टैक्स

play08:33

रिसीव कर रहे हैं तो यह बिटिया गाइस तो एक

play08:36

तरीका है मल्टीपल वीजा है कोड लिखने के

play08:39

सुबह यह बहुत जो बात करते हैं तीन चुटकी

play08:42

तो आप ऐसे जो भी आपके नेम है अब मार दी

play08:45

इसमें कुछ बड़ा दो कोई डाउट है क्या हो

play08:47

तुरंत चेंज बैकग्राउंड कर देते हैं देखो

play08:50

जरा भी आ गया ठीक है वे यहां पर

play08:54

ठीक है अनुज विवेक आया राम गया है इस को

play08:58

सेव कर लेते हैं यहां पर मुझे लिखो लिखना

play09:01

पड़ेगा कि

play09:03

यह देखिए

play09:05

हां हां ठीक है इसी करना पड़ेगा नहीं 4

play09:11

अच्छा ठीक है हम भी आ चुका है ठीक है बट

play09:13

यहां पर भी Android इसलिए है क्योंकि हम

play09:15

यहां पर इंटैक्ट नहीं कराया तो आप यहां पर

play09:17

अगर यह अलग तरीके बता रहे हैं आपको आपकी

play09:19

मर्जी आप कोई भी उस करो तो यहां पर नेम

play09:21

फॉर हो गया ना

play09:23

और आखिरी करना पड़ेगा पिछले इंडक्टिव पर

play09:26

है

play09:27

है या कोमल लगा देते हैं शेप कर लेंगे ठीक

play09:30

है ठीक है उसे मारा-पीटा और यह आपका एक और

play09:33

तरीका था जिसमें इस तरीके से आपने किस

play09:35

नियम पास किया नेम यहां पर गया और ऐसा *

play09:38

शैली आपके प्रिंट हो गई है मुझे तो बस

play09:40

लगता है दिस इज द फर्स्ट वर्ल्ड प्

play09:42

है या आपका बेस्ट है तो तीन दो पास कि

play09:46

उसके बाद फिर आप जैसे चाहे यहां पर रिसीव

play09:48

कर सकते इसमें खास बताऊं ब्यूटी गया उसके

play09:51

घर में कमेंट करूं अभी

play09:52

ठीक है और अगर इसको कॉल करो अभी तो मुझे

play09:56

पता कि मेरा क्या कसूर है तो मैं यहां से

play09:57

हटा भी हूं मैं

play10:00

है ना से हटा देते सेव करते हैं तो देखो

play10:02

कोई गैर नहीं आएगा बाकी अधर में जो है

play10:04

पहले बारे में डिटेल में रास्ता की ही

play10:06

सप्लाई करो फोर्स पुलिया को पास करना

play10:08

पड़ेगा तो जितने पास करेगा तो या प्रिंट

play10:11

कराओ कोई प्रेशर नहीं है यह डेंटिस्ट लेता

play10:13

जवा एपलेट यूज करते हो ठीक है तो यह है कि

play10:16

इसमें तो आप अपने उद्योग में कैसे काम

play10:18

करता है तो चलिए देखते हैं व्यक्ति के साथ

play10:20

कैसे रेट्स काम करता है वह और रिस्पेक्ट

play10:23

के साथ कैसे काम करता भी आपने के साथ देखा

play10:25

बहुत ही सिंपल में बताऊंगा आप रिसेट कर

play10:27

पाओगे कि इसमें एक ही बताऊंगा जो इंटरव्यू

play10:29

पूछ लेता है कभी-कभार यह कैसे आप वैल्यू

play10:32

को ओवरराइड कर सकते हो खाना अगर मान लीजिए

play10:35

अपडेट केंद्र वैल्यू नेम अज है उसको विजय

play10:37

करना हो या फिर एच को बदलना हो तो यह किसी

play10:40

भी व्यक्ति बदलना और कैसे बदल सकते वह

play10:42

एग्जांपल में देखेंगे कि रेस्टोरेंट स्पीड

play10:44

कैसी उदय के साथ काम करते हैं तो यहां पर

play10:46

मैं सिंपल एक

play10:48

ऑब्जेक्ट बना देता हूं ऑब्जेक्ट का नाम

play10:50

देते हैं आप स्टूडेंट्स ठीक है कि आपके और

play10:55

यहां पर मैं उसका स्वयं का नाम दूंगा का

play10:58

यह जो कि है अजय अजय की याद हो चुकी है

play11:03

तो 820

play11:09

जो हमारे थे यहां पर हमारी जो पीछे गाइस

play11:11

वह हम देते हैं मेरी है क्रिकेट

play11:16

और

play11:17

[संगीत]

play11:18

ठीक है और थोड़ी वॉशिंगटन कर लेते हैं अब

play11:23

सिंह हो गया ठीक है

play11:25

तो दो हो गई है अब यह प्रोजेक्ट बन गई है

play11:28

सब्जेक्टिवली भी डाल सकते हैं बैठे कि अब

play11:30

जेट इस नोट एनरिक बट इस इन ऑब्जेक्टिव ई

play11:34

हैव नो मनी बट यह बीज आप देख रहे हैं अरे

play11:36

फॉर्म में दिया है कैरियर बनाया है जिसका

play11:38

अपने बजट के अंदर अब यहां पर मुझे अगर एक

play11:41

चाहिए हो तो मैं कैसे करूं सिंपल अगर हम

play11:44

नार्मल तवा पर की बात करते हैं तुम क्या

play11:46

करते हैं ए स्टूडेंट में से निकाली के लिए

play11:51

कि किस तरीके से हम करते हैं अगर मैं

play11:53

कंट्रोल डोर लॉक लगा हूं और यहां पर मैं

play11:55

एक को फ्रेंड करूं तो इसमें ढूंढ हो गई तो

play11:58

8 मिनट होंगे देखो बट एक और तरीका जो

play12:01

हमारे यह सेक्शन में दिखाया जाता है विच

play12:03

आईएस कॉल्ड थे डिस्ट्रक्शन लिंग तो अगर

play12:06

मैं आंवले को पॉज यह बस एक स्टूडेंट के आ

play12:14

है तो यहां पर मैं इसे कर देता हूं कमेंट

play12:16

दिखेगा जान से कुछ भी न होगा आ स्टूडेंट्स

play12:20

नॉट डिफाइंड अच्छा स्टूडेंट्स गया ठीक है

play12:22

तो यहां पर डेट आ चुका है तो यह एक तरीका

play12:25

नहीं है कि सारे नए-नए तरीके बता रहा हूं

play12:26

मैं आपको एडिसन बोलते हैं यहां पर आपको

play12:28

नहीं चाहिए हमने दो सिंपल तो आप

play12:31

निम्नलिखित आपको यह मिल जाएगा देखिए आ गया

play12:36

ठीक है तो 10 मिनट के अंदर हमारे पास नहीं

play12:38

मैं अजेय अभियान अरेस्ट यूज नहीं किया

play12:40

डोंट वरी ठीक है बस यह थोड़ा हार्ड

play12:42

स्प्रिंग कौन से बताने का मन कर गया तो

play12:44

बता दिया आपको अब यहां पर एग्जांपल मैं

play12:47

चाहता हूं कि जैसे ही प्रिंट तो बडू अदर

play12:50

ऑब्जेक्ट केंद्र भी चीज है वह प्रिंट हो

play12:52

जाए मेरी तो वही सेम कृपया करना कंबाइंड

play12:55

करना है जो बच्चियों चीजें हैं उन्हें

play12:58

कंबाइंड करना है और जब भी कंबाइन की बात

play13:00

आएगी तो हम बात कर रहे होंगे अरेस्ट की

play13:02

ठीक है तो डॉट

play13:04

लेते हैं यहां पर प्रेस मतलब अरेस्ट जो

play13:07

चीज है और यह सिर्फ करते हैं इस ड्रेस को

play13:09

पिन करा तो ध्यान से का या है तो सेव कर

play13:12

लेते हैं देखिए नेम और ओबीसी प्रिंट हो

play13:14

चुका है ने मजे हो गया क्रिकेटर सिंह का

play13:17

गया वह 200 डिफरेंट नहीं कराया तो इस अलग

play13:20

ही चल रहा है इसके इलावा जो भी यहां से

play13:22

हमने हैंडल किया अरेस्ट ऑपरेटर से इसका

play13:25

नाम एड्रेस दे दिया बदल सकते हैं उसका नाम

play13:26

बर्ड इज द वे तो अगर मैं इसे यहां से कॉल

play13:29

कर हटा दो उसको अपने सेट आए तो सेव करता

play13:32

हूं तो ने भी आ गया आज भी आ गया है

play13:36

ओम ने Bigg Boss है इस भी आ गया और उबल भी

play13:39

आ गया ठीक है तो इस तरीके से अरेस्ट आफ का

play13:42

काम करता है तो आए हो यहां तक कोई डाउट

play13:46

नहीं होगा अब मैं अगर मुझे कोई कहे

play13:48

स्प्रेड देख लेते हैं अकबर

play13:50

अपडेट करना उल्टा करना है इसका मतलब हरी

play13:52

मिर्च और ऐसे में कि हमने कंबाइन किया अब

play13:55

मैं क्या मुझे किसने कहा कि अब आपकी 10 हो

play13:58

गई है उसे बदलने आपने कैसे बदलेंगे व हम

play14:00

करेंगे इस प्रेड की हेल्प से यहां पर काम

play14:02

करते हैं सिंपल कौतिग बनाते हैं न्यू

play14:04

स्टूडेंट के नाम से है

play14:08

है और यहां में काम करने वाला हूं

play14:11

थे स्टूडेंट को यहां पर इस तरीके से

play14:13

एक्सेस कर लूंगा ठीक है तो यह करो

play14:17

एग्जैक्ट की वैल्यू को मिली कैसे कॉपी करो

play14:19

दूसरा ऑब्जेक्ट में तो यहां पर मैं

play14:21

control.com लगाता हूं

play14:24

में आ ठीक है और इसको कर पिन करवाता हूं

play14:27

तो क्या होगा देखिए प्रोडक्ट आ गया ठीक है

play14:31

सीमेंटेड के साथ मैं इसमें जो नीम है यह

play14:34

जगह सेमी है मेरे बदल ली है कुछ नहीं

play14:36

करेंगे इस दिन कि

play14:39

आ जाती थी

play14:41

ठीक है देखिए स्टूडेंट हो गई है वे अपने

play14:44

वह ऐड कर दी तो इस तरीके से आप सुसाइड कर

play14:46

सकते हो तो हमने क्या कि यहां पर जो मेरा

play14:49

ऑब्जेक्ट हमने इस तरीके से झूमर आप पुराना

play14:52

ऑब्जेक्ट तो उसमें पास किया अब मुझे इसकी

play14:54

वैल्यू को ओवरराइड करने तो यहां पर जो

play14:56

बिजनेस भी आपको ए ट्रिब्यूट में करना

play14:58

जिसकी में करना इसको यहां पर दो के और

play15:00

अपने नियोजकों पेंट करवाकर तो आपको वह

play15:02

अपडेट अपडेट अपडेट मिले का यह इंटरव्यू

play15:04

में ही पूछ रहा था कभी कबार तो यह आपको

play15:06

पता होना चाहिए वह गैस स्प्रेड रेस्ट आपको

play15:09

समझ आया होगा एवरी ऑब्जेक्ट के साथ पॉइंट

play15:12

तो रमेश ने बताना बाकी नेक्स्ट कौन सा

play15:14

टॉपिक कवर करो यह सिक्स के अंदर जो भी आप

play15:16

कमेंट लिखना थैंक यू सो मच अच्छा लगा हो

play15:18

तो इसे लाइक करना Share करना बाकी मिलता

play15:21

हूं आपसे बहुत ही जल्दी नेक्स्ट वीडियो

play15:22

में तेल दें ध्यान रखिए अपना

play15:28

हुआ है

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
JavaScriptES6ReactRest operatorSpread operatorAdvanced codingCoding tipsFrontend developmentProgrammingWeb development
هل تحتاج إلى تلخيص باللغة الإنجليزية؟