Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is a directive? #388

Open
sevtapim opened this issue Sep 22, 2020 · 1 comment
Open

What is a directive? #388

sevtapim opened this issue Sep 22, 2020 · 1 comment

Comments

@sevtapim
Copy link

sevtapim commented Sep 22, 2020

'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?

@jmitchell38488
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants