-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathscript.js
More file actions
12 lines (10 loc) · 635 Bytes
/
script.js
File metadata and controls
12 lines (10 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
// This is a placeholder file which shows how you can access functions defined in other files.
// It can be loaded into index.html.
// You can delete the contents of the file once you have understood how it works.
// Note that when running locally, in order to open a web page which uses modules, you must serve the directory over HTTP e.g. with https://www.npmjs.com/package/http-server
// You can't open the index.html file using a file:// URL.
import { getUserIds } from "./storage.js";
window.onload = function () {
const users = getUserIds();
document.querySelector("body").innerText = `There are ${users.length} users`;
};