المعرفة:: JavaScript الحالة::مؤرشفة المراجع:: JavaScript Essential Training
Where to put JavaScript code?
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
Inline: in an HTML document
<script>
const allCode = document.querySelectorAll("code");
for (let item of allCode) {
item.innerHTML = `<${item.innerHTML}>`;
}
</script>
External file
<script src="script.js"></script>