--- title: Internal Training - D3 tags: CS --- # Internal Training - Interactive D3 ## Installation - Go to [CodeSandbox](https://codesandbox.io/) - Click Create Sandbox  - Choose Static  - New file `script.js`: ```js alert("Hello"); ``` - Add to `index.html` ```html <script src="script.js"></script> ... <h1 id="title"> ``` - Change `script.js` ```js function changeTitle(title) { document.querySelector("#title").textContent = title; } ``` - `script.js` ```js window.onload = () => { changeTitle("Coderschool"); }; function changeTitle(title) { document.querySelector("#title").textContent = title; } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up