CLOSURE in javascript explained | JavaScript in Hindi - 57

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Understand the concept of JS Closure with fun examples. Need not be afraid of closures any more.
    A closure is a pairing of:
    1. A function and
    2. A reference to that function's outer scope (lexical environment)
    A lexical environment is part of every execution context (stack frame) and is a map between identifiers (i.e. local variable names) and values.
    Visit our site : coderdost.com
    🔴 Full Courses List : coderdost.com/...
    🔴 Full Projects List : coderdost.com/...
    💾 Source Codes at : github.com/cod...
    🤯 Crash Courses (Single Video)
    Git/Github Crash Course : bit.ly/3JSA5VT
    TypeScript Crash Course : bit.ly/372dZSh
    Angular Crash Course : bit.ly/3DoGJR1
    Vue JS Crash Course : bit.ly/3uDujRl
    Python Crash Course : bit.ly/3Dod7U2
    React Router Crash Course : bit.ly/36YfO2i
    🧑‍🏫 Tutorial Playlists
    HTML : bit.ly/36IMq0h
    CSS : bit.ly/3LpRQw6
    JavaScript : bit.ly/3u049tf
    BootStrap : bit.ly/3NA9nDJ
    ES 6 : bit.ly/3DvYCh6
    DOM Playlist : bit.ly/35nMKB7
    ReactJS (Redux & Hooks) : bit.ly/3iMethN
    NodeJS/ExpressJS : bit.ly/35nN6Yt
    MongoDB / Mongoose : bit.ly/3qPj0EO
    💻 Projects Playlists
    MERN Stack Complete Ecommerce : bit.ly/3ymSs0E
    Web Design HTML+CSS - Home Page : bit.ly/35nZiIB
    Web Design BootStrap - E-Commerce Site : bit.ly/3iPhaz7
    React/Redux/Firebase - Todo-App : bit.ly/3DnekL8
    🕹 Mini Projects (Single Video)
    React - Tic Tac Toe (Redux / Hooks) : bit.ly/3uzLEuy
    React - Game of Flag Quiz (Hooks) : bit.ly/3LpTC0e
    React - Google Translate Clone (Hooks) : bit.ly/3Lo9xvZ
    React - Chat App using Firebase (Hooks) : bit.ly/3wLgymj
    How do JavaScript closures work?
    lexical scope in javascript
    javascript closure example
    use of closure in javascript
    javascript closure explained
    js closure

Комментарии • 13

  • @SandeepKumarsoftwaredeveloper
    @SandeepKumarsoftwaredeveloper Год назад

    function sum(num,num1,num2){
    return num+num1+num2;
    }
    function curry(callback){
    return function(num){
    return function(num1){
    return function(num2){
    return callback(num,num1,num2);
    }
    }
    }
    }
    const sumf = curry(sum)(1)(2)(3);
    console.log(sumf);

  • @orion2843
    @orion2843 2 года назад +5

    Promises & Callback Functions in depth.in Java Script

  • @chetangupta2130
    @chetangupta2130 Год назад +1

    Hope it is a appropiate code solution:
    let sum = (a) => {
    let sum = 0;
    sum = sum + a;
    return (b) => {
    sum = sum + b;
    return (c) => {
    sum = sum + c;
    console.log(a+b+c)
    }
    }
    }
    let totalSum = sum(1)(2)(3);

  • @orion2843
    @orion2843 2 года назад +2

    Promises & Callbacks

  • @TrendingShorts-5G
    @TrendingShorts-5G 2 года назад +1

    Yes promise

  • @rahultripathi6935
    @rahultripathi6935 Год назад

    U saved my life 🙏

  • @soumadip_skyy_banerjee
    @soumadip_skyy_banerjee Год назад +1

  • @amritpal1418
    @amritpal1418 2 года назад +2

    payment gateway

  • @mdfurkan370
    @mdfurkan370 Год назад

    Sir selector pointer cursor ko aisa kaha se design kr skte hai

    • @coderdost
      @coderdost  Год назад

      cursor: url('image.png'), auto; [ where image.png is new cursor image ]. Path of image should be accessible publicly if site is live.
      Many type of cursor examples in this link :
      css-tricks.com/almanac/properties/c/cursor/

  • @sabiburrahaman3832
    @sabiburrahaman3832 Год назад

    need about (this) and arrow function

    • @coderdost
      @coderdost  Год назад +1

      1. ruclips.net/user/shortskLCKUqlvEvc
      2, ruclips.net/user/shortsEtW1bHK-u-4

  • @suryatejaparvata
    @suryatejaparvata Год назад

    👍🏻