scrimba
Bootcamp (HTML/CSS/JS) 2024
Bootcamp 9.1
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Bootcamp 9.1
AboutCommentsNotes
Bootcamp 9.1
Expand for more info
index.js
run
preview
console
// DOM MANIPULATION

function btnClick(){
alert("click")
}
function textChange(){
console.log("hello");
}
const divNode = document.getElementsByClassName("hello");
for(let j=0; j < divNode.length; j++){
const node = divNode[j];
node.innerHTML = "i am doing reset";
node.addEventListener("click", function(){

})
}


// divNode.innerHTML
// divNode.innerText
// divNode.style.fontSize = '30px'
// divNode.setAttribute("class", "btn-class")

/*
const btnNode = document.getElementById("btn");

// btnNode.innerHTML
// btnNode.innerText
btnNode.style.fontSize = '30px'
btnNode.setAttribute("class", "btn-class")
*/
/*
const node = document.getElementById("demo")
node.innerHTML= "Hi, I am Tarun";
// console.log(node.attributes)
node.addEventListener("click", function(){
console.log("clicked");
})

node.onclick = function(){
console.log("i am again clicked");
}
*/
Console
"hello"
,
"hello"
,
"hello"
,
"hello"
,
"hello"
,
"hello"
,
"hello"
,
/index.html
LIVE