Possible to enable “strict mode” in FireBug and Chrome's console?

前端 未结 5 819
刺人心
刺人心 2020-12-14 16:42

With this page:



  
    

        
5条回答
  •  自闭症患者
    2020-12-14 17:30

    Chrome: put 'use strict'; prefix in your code line (and/or shift+enter for multiline)

    'use strict'; var foo = 2; delete foo;

提交回复
热议问题