Skip to content

Commit 14eb62c

Browse files
committed
minor fixes
1 parent 6c6d5a4 commit 14eb62c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

1-js/05-data-types/11-date/6-get-seconds-today/solution.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ function getSecondsToday() {
2323
let d = new Date();
2424
return d.getHours() * 3600 + d.getMinutes() * 60 + d.getSeconds();
2525
}
26+
27+
alert( getSecondsToday() );
2628
```

1-js/13-modules/01-modules-intro/article.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ Like this:
5757

5858
The browser automatically fetches and evaluates the imported module (and its imports if needed), and then runs the script.
5959

60+
```warn header="Modules work only via HTTP, not in local files"
61+
If you try to open a web-page locally, via `file://` protocol, you'll find that `import/export` directives don't work. Use a local web-server, such as [static-server](https://www.npmjs.com/package/static-server#getting-started) or VS Code [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) to test them.
62+
```
63+
6064
## Core module features
6165

6266
What's different in modules, compared to "regular" scripts?

0 commit comments

Comments
 (0)