JavaScript “use strict”

Free Web development courses with real-time projects Start Now!!

Program 1

<html>
    <head>
        <script>
               "use strict"
             function show(x,y,z)
             {
                 console.log(x+y+z) 
             }
             show(5,10,20)
            // "use strict"
            //    let x=100
            //    console.log(x)
            //    function display()
            //    { 
                    
            //          let y=500
            //           console.log(y)
            //    }
            //    function show()
            //    {
                     
            //          let z=1500
            //           console.log(z)
            //    }

            //    display()
            //    show()
        </script>
    </head>
 
    <body>

    </body>
</html>

 

Did we exceed your expectations?
If Yes, share your valuable feedback on Google

courses

Leave a Reply

Your email address will not be published. Required fields are marked *