-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
モジュール(module) #329
Comments
拡張子はデフォルトでつけておいて、Node.jsでは省略できますと注記する |
<script type="module">
export const scopeA = "A";
</script>
<script type="module">
// 異なるmoduleスコープの変数には直接はアクセスできない
console.log(scopeA); // => ReferenceError: scopeA is not defined
</script> これの説明が必要そうと思った。 |
http://kenshir0f.hatenablog.com/entry/2018/05/05/232948 |
モジュールのスコープについてを説明することになった |
現実ではmoduleを直に使うよりbundlerを使ったほうがいいよという話を最後に入れる場合に参照しそうなやつ。 Using JavaScript modules on the web | Web Fundamentals | Google Developers |
#267
環境 > モジュールの章
ユースケースの一部
The text was updated successfully, but these errors were encountered: