Saturday, July 5, 2025

Javascript Variable (Const , Let , Var) | Complete javascript series


 

Video link :  Go to video

Complete Code : 

<script>


    // var x = 20;   

     

    // var   x = 30;

    // document.write(x)




    // const x = 20;


    //      x = 30;

    // document.write(x)




    // let x = 50


    //     x = 30

    // document.write(x)


    

    var x = 40;

    const y = 90;

    let z = 80


    document.write(window.x);

    document.write(window.y);

    document.write(window.z);


 // window is an object used to describe variable globally.

</script>

No comments:

Post a Comment

Data types in python

  See video :   Go to video