int-curriculum-23-24's People
Forkers
jdominguez09 jasonq-uag romulo221 jadenmei chadashman fruitcrown masato2123 mangoman89 kenson-h vlrvro cnadira rebroge djtaylore vcjr alex1234789 itzrya4life jsamples27 elegantella saniyahg henrit14 abraralsayedi ionizier jamesd2025 darii19 sametj aumcintyre kgpierre yves129 samira-3 kidumbleton ls8576 tayoaj b9pe idaam amadalis kortiz47 jillvano wbriana93 georgecrawford15 cn-jerry jaylenewen sqmantha praisemoses matthewtitzer tyoshichikayama-jackson avetp344021 ryan-steelpixel tenlohint-curriculum-23-24's Issues
Unit 3 Lesson 1 - Do Now JavaScript Error
The Unit 3 Lesson 1 Do Now (script.js, line 9) uses querySelector to select all elements with the "name" class and update their content like so:
document.querySelector(".name").innerHTML = username;
This does not update any element with that class except for the first. To fix it, I would suggest using querySelectorAll and using the forEach method like so:
const names = document.querySelectorAll(".name");
names.forEach((name) => name.textContent = username);
This should fix the issue and update all elements with the "name" class. I have also replaced innerHTML with textContent for security purposes.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.