FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript-DOM-Tutorial/app.js at lesson-5 · durga61/JavaScript-DOM-Tutorial · GitHub
durga61
JavaScript-DOM-Tutorial
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript-DOM-Tutorial
/
app.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 328 Bytes
Breadcrumbs
JavaScript-DOM-Tutorial
/
app.js
Copy path
File metadata and controls
9 lines (7 loc) · 328 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
const
books
=
document
.
querySelectorAll
(
'#book-list li .name'
)
;
Array
.
from
(
books
)
.
forEach
(
function
(
book
)
{
book
.
textContent
+=
' (Book title)'
;
}
)
;
const
bookList
=
document
.
querySelector
(
'#book-list'
)
;
bookList
.
innerHTML
=
'<h2>Books and more books...</h2>'
;
bookList
.
innerHTML
+=
'<p>This is how you add HTML content</p>'
;
Back
|
FazBrowse Home
|
New Git URL