Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enginooby-practice/javascript


https://github.com/enginooby-practice/javascript

Last synced: about 7 hours ago
JSON representation

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.