Unfortunately, if you are struggling with frontend to the point where you are not able to create at least a page or two, I would highly recommend that you put the thought of making projects on your own to the side for now, and focus on following along with tutorials that may be project...
Off the bat, I can tell you one error that you will run into: if you are looking for just ONE element,
document.querySelector('.className') => this will return the first element with the given classname/id name
if you want all elements:
document.querySelectorAll('.className') => this will give...
let a = event.target;
let b = a.parentElement.querySelectorAll("clicked").classList.remove("clicked");
One thing to note:
As the name suggests, css is "cascading". This means that the lower your style sheet is on your stylesheet reference (ie the <link> tag list in your <head> tag), the higher the precedence. Not only that, but the closer the style is to the actual element itself, the higher the...
Having been through this eternal question from the 360th pit of hades... I can tell you, if you are looking for a 1-1 comparison... there is none lol, for lack of better words. Rather than looking at the code, try moving 1 step backward, and pseudo coding the algo with comments, and go from there.