A code repo for javascript series at Chai aur code youtube channel
All projects are available here in a special sandbox. All future projects will also be added on the same link. Javascript Projects
A code repo for javascript series at Chai aur code youtube channel
A code repo for javascript series at Chai aur code youtube channel
All projects are available here in a special sandbox. All future projects will also be added on the same link. Javascript Projects
Hi Hitesh,
I was doing some js practices from your videos and came after this project and was going through the code but did not understand project 4 do we need the prevGuess[] cause it is not used for displaying anything it just keeps track of the elements pushed but it is not used anywhere,
help me understand as I am a beginner but if I am missing something here.
ji sir aapne tho kamal ki kaam kar rahe hai
mein apke js playlist tho 80% complete karke ye lag raha hai mein js mein full confident hun
waise playlist mein projects video mein 1) project color change ka apne har ek color ko target karke background change kar rahe hai
tho maine socha
chalo color naam ki variable mein sabhi hojai
let buttons = document.querySelectorAll('.button')
let body = document.querySelector('body')
buttons.forEach((btn)=>{
btn.addEventListener('click',(e)=>{
let color = e.target.id
body.style.backgroundColor = color
})
});```
So much thankful for Hitesh sir providing amazing and great content to us.
const body = document.body;
const buttons = document.querySelectorAll(".button");
buttons.forEach((button) => {
const color = button.getAttribute("id");
button.addEventListener("click", (e) => {
body.style.backgroundColor = color;
});
});
interations folder consist of files named one to nine but there is no file named eight ig it might be missing
@hiteshchoudhary In project 4" prevGuess.push(guess);
if (numGuess === 11)" is blocking the successfull result if we achive in last chance. if we guessed it right in last chance it's showing game over so please change it to " prevGuess.push(guess);
if (numGuess < 11)" it will fix this issue and thanks for this level of undestaning lectures sir.
Haanji , in this you have used event listener to get the id of the color clicked. But we used the other way to solve this and found it somewhat interesting and better .
function clicked(z) {
const x = document
.querySelector('body')
.setAttribute('style', background-color:${z};
);
}
const y = document.querySelectorAll('.button');
console.log(y);
y.forEach((button) => {
const x = button.getAttribute('id');
if (
(document.getElementById(x).onclick = () => {
if (true) {
console.log(x);
clicked(x);
}
})
);
});
Here new text is added in the readme file
From when js hindi course will continue?
Please ๐ answer sir.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.