Variables in Javascript

Поділитися
Вставка
  • Опубліковано 31 жов 2024
  • Hey Everyone, In this video, we will learn about variables in Javascript. We will see all three ways to declare variables in javascript i.e var, let, and const.
    Connect With Me: bio.link/piyus...
    More Playlists
    ► Complete ReactJS Tutorial Series - • Complete React Tutoria...
    ► Complete Firebase & React Tutorial Series - • Firebase with Reactjs ...
    Social Links
    ► Twitter - / piyushgarg_dev
    ► LinkedIn - / piyushgarg195
    Video Titles
    Variables in Javascript
    How to declare variables in Javascript?
    Hashtags
    #javascript #fullstackdevelopers #javascriptinhindi #frontenddeveloper #frontend #js #webdevelopment #webdesign #webdev

КОМЕНТАРІ • 20

  • @lovehate328
    @lovehate328 Рік тому

    Thank you for explain... Mujhe Js samjh nahi rha tha bilkul bhi apne ekdm basics se batay to Thoda confidence aya 🙏🙏🙏

  • @rainbowColor-yp6ie
    @rainbowColor-yp6ie 3 місяці тому +1

    You seem to missed
    1. Var can be redeclared
    2. Shadowing of var (same variable name declared outside and inside function now which will be used if value is changed inside the JavaScript function ?)
    3. Many say var has Function scope, some say both global and function
    4. The word hoisting

  • @rohitram9701
    @rohitram9701 2 місяці тому +1

    00:02 Variables in JavaScript
    02:19 JavaScript variables and data types
    04:26 Javascript variables can be loosely typed
    06:36 Valid variable name conventions in JavaScript
    08:40 Variables in JavaScript have scope and can be accessed inside specific boundaries.
    11:01 let and const have local scope, while var has global scope.
    13:19 Variables in JavaScript - Scope and Usage
    15:48 Variables in JavaScript can be modified and assigned later.
    17:45 Variables in JavaScript have different scopes based on declaration

  • @rishiraj2548
    @rishiraj2548 4 місяці тому +1

    The best video I have learned from...

  • @Zyan_701
    @Zyan_701 Місяць тому

    Sir maine paid bhi padha ha lekin isse behtreen nhi samjhaye
    App ka surkiya ❤❤
    Lekin sir kya itna enough ha janna js ke bare me

  • @rohitram9701
    @rohitram9701 2 місяці тому +1

    The Comprehensive Guide to JavaScript Variables
    [00:02](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript
    - Variables in JavaScript are used to store data in memory.
    - There are three methods to declare variables in JavaScript - var, let, and const, each with its own advantages and disadvantages.
    [02:19](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) JavaScript variables and data types
    - JavaScript 'var' keyword creates variables with dynamic typing
    - JavaScript is a loosely typed language, allowing dynamic typing and no strict data types
    [04:26](ua-cam.com/video/S_WSNrzzpLo/v-deo.html66) Javascript variables can be loosely typed
    - Javascript variables do not require data type specification
    - Changing the value and data type of variables at run time can create bugs
    [06:36](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Valid variable name conventions in JavaScript
    - Variable names must start with an alphabet
    - Spaces and special characters not allowed, use underscores or camel case
    [08:40](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript have scope and can be accessed inside specific boundaries.
    - Variables can be created with local scope inside a specific block of code.
    - Variables with global scope can be accessed from anywhere in the program.
    [11:01](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) let and const have local scope, while var has global scope.
    - Variables declared with let and const are always local.
    - Variables declared with var have global scope.
    [13:19](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript - Scope and Usage
    - Variables in JavaScript can be local or global, affecting their accessibility.
    - The 'let' keyword for defining variables allows for block scope and value reassignment.
    [15:48](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript can be modified and assigned later.
    - Variables can be declared without assigning a value initially.
    - Constants must be initialized with a value upon declaration and cannot be changed later.
    [17:45](ua-cam.com/video/S_WSNrzzpLo/v-deo.html) Variables in JavaScript have different scopes based on declaration
    - Variables declared with 'var' have global scope and can be accessed anywhere
    - Variables declared with 'let' have block scope and can only be accessed within their own block

  • @iamyum5835
    @iamyum5835 Рік тому

    Thank you so much for detail explanation! 🙏

  • @nabinsaud4688
    @nabinsaud4688 2 роки тому +1

    Bro make a video on Pagination in React js

  • @Rohitkumar-vq1yk
    @Rohitkumar-vq1yk 9 місяців тому

    Thanks

  • @aliyanbalouch8603
    @aliyanbalouch8603 4 місяці тому

    Thanks sir

  • @Bk9113-l3e
    @Bk9113-l3e Рік тому

    well explantion 👍

  • @karandave7967
    @karandave7967 9 місяців тому

    Wah!

  • @ajayypalsingh
    @ajayypalsingh Рік тому +1

    💯❣

  • @mohitjindal2036
    @mohitjindal2036 9 місяців тому

    Const arr = []
    arr.push(1)
    Console.log(arr) -> [1]
    How it is possible if const cannot be reassigned?

    • @JaskaranSingh-hw5jf
      @JaskaranSingh-hw5jf 8 місяців тому

      name of the array=reference to the 1st element's address

  • @code_in_second
    @code_in_second Рік тому

    Done 🔷

  • @muhammadshahid-ui9xf
    @muhammadshahid-ui9xf Рік тому

    awesome

  • @mohitchandola3435
    @mohitchandola3435 2 роки тому

    💥🔥

  • @aniketpurohit1875
    @aniketpurohit1875 Рік тому

    done

  • @temujin9344
    @temujin9344 7 місяців тому

    Var be like apun koi gali ka gunda nahi globally dab daba hai apun ka 😂