What is a directive?
sevtapim opened this issue · comments
Sevtap Fernengel commented
'use strict' is a directive in JS. What does directive mean, how does it differ from a statement? Are import and export directives or statements?
Justin commented
use strict
is the only well known, which I've covered here in discussing hoisting: https://thejs.dev/jmitchell/what-is-hoisting-and-how-it-works-in-javascript-e1e