JavaScript Example (Program)
Learn Details

What is JavaScript Strict Mode ?


Strict Mode का use हमारे javascritpt के code को error free करने के लिए किया जाता है

Syntax 1: Strict mod

"use strict"

Example 1 : strict



<script>     
       "use strict"
        let a = 20;
        console.log(a+80)
</script>
 

Example 2 : use strict with function



<script>     
 let b = 30;
  function myfunc(){
   
     let c  = 120
      console.log(b+c)
  }
  myfunc()
</script>