Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enginooby-practice/javascript
https://github.com/enginooby-practice/javascript
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/enginooby-practice/javascript
- Owner: enginooby-practice
- Created: 2020-07-30T07:48:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T14:12:55.000Z (about 4 years ago)
- Last Synced: 2024-01-10T11:54:02.458Z (10 months ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
- ```alert()``` and ```console.log()```
- ```document.getElementById("").innerHTML = ```: change content
- ```document.getElementById("").onclick = ```: add event
- ```document.getElementById("").style.```: change style
- No hyphen ```-``` in JavaScript, e.g. ```font-size``` => ```fontSize```
- ```style.display="none/block"``` to hide/display the element
- ```document.getElementById("").value```: retrieve value of ``````, ``````
- Array
[[variable-array]()]
- Add element to the end of array: ```push()```
- Remove element: ```splice(, )```
- Add element before a specific index: ```splice(,0,)```# Notes - Tips
- JavaScript code can be typed and execute in the console section of the browser development tool
- Debug in the console section of the browser development tool
- [HTML] Generate HTML template in VSCode: type ! => Enter
- Placing scripts at the bottom of the element improves the display speed, because script interpretation slows down the display.