Build a Shopping Cart with JavaScript – Project Tutorial

Build a Shopping Cart with JavaScript – Project Tutorial

freeCodeCamp.org

2 года назад

339,866 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ifty Rahman
Ifty Rahman - 15.10.2023 13:24

By this video I have got to learn about es6 arrow function and also how to properly use variables. Thanks for this tutorial.

Ответить
Aditya Singh
Aditya Singh - 05.10.2023 20:12

🤟🤟

Ответить
mojtaba vahedi
mojtaba vahedi - 03.10.2023 23:53

thank you 😍

Ответить
Fahad saif khan
Fahad saif khan - 02.10.2023 23:00

This is very hard man.....u have memorize lot of css properties....than comes js part which is also troublesome....
Can we the same with Ai😊😊😊

Ответить
Harshil Patel
Harshil Patel - 01.10.2023 18:59

Thank you for the detailed information 🤍....

Ответить
Aaditya Vats
Aaditya Vats - 28.09.2023 16:19

tnx

Ответить
OLAYINKA ONAKOYA
OLAYINKA ONAKOYA - 23.09.2023 19:25

I love this. it make me understand everything about JavaScript. thanks a lots

Ответить
Paul Capo
Paul Capo - 20.09.2023 16:57

This is really helpful. Thanks! But I am running into an issue

<div class="buttons">
<i onclick="decrement(${id})" class="bi bi-dash-lg"></i>
<div id=${id} class="quantity">
${search.item === undefined ? 'undef' : search.item}
</div>
<i onclick="increment(${id})" class="bi bi-plus-lg"></i>
</div>

The div is generating 'undef' as soon as the page loads and it is not putting the number that is stored in local storage. However, as soon as I click one of the buttons, everything is working correctly. Any idea why?

Ответить
Mio Ttraja
Mio Ttraja - 10.09.2023 20:30

I find in my case problem is let basket = JSON.parse(localStorage.getItem("data")) || [] ; my code who work is let basket = JSON.parse(localStorage.getItem("data")) ;

Ответить
Mio Ttraja
Mio Ttraja - 10.09.2023 19:22

I get cote from git but chart.html not worked

Ответить
Chandresh Tripathi
Chandresh Tripathi - 26.08.2023 06:32

Thanks a lot bro... I found the best

Ответить
Pratibha Pawar
Pratibha Pawar - 25.08.2023 12:39

my item value is not increasing ,it shows me item: NaN

Ответить
Arun Rawat
Arun Rawat - 20.08.2023 13:42

increment function is little bit tough for me. I also get 50% of information.

Ответить
Abdullah Mehmood
Abdullah Mehmood - 19.08.2023 18:09

Thanks For This Project.

Ответить
Bake It
Bake It - 09.08.2023 14:44

this is the best course I've ever seen online I followed it till the end.

Ответить
harshal nath
harshal nath - 06.08.2023 14:05

how you can able to get the features of html writing in backticks javascript when i am writting it does not suggest any boiler plate of elements and i have to write all things manually is there any extensions you are using please let me know.

Ответить
Imane Vibes
Imane Vibes - 05.08.2023 02:03

im a total beginner in js so while copying with the video i couldn't increase the numbers , even i have all the code right but i found out that the alignement of the functions is not well organised also i've made the id name "product-..." AND THE "-" is not allowed in js
so guys you need to pay attention to these small details while coding.

Ответить
Bode Peter
Bode Peter - 03.08.2023 19:39

nice video
boss

Ответить
Nomagugu Zemura
Nomagugu Zemura - 01.08.2023 18:16

Big thank you for this

Ответить
Agyemang Christopher
Agyemang Christopher - 01.08.2023 04:53

Good work , God bless you , i love they way you explain the concept . this is the kind of tutorials i have been looking for. please send me you own channel name so that i can subscribe now i dont want to miss your videos

Ответить
Sufiyan Shaikh
Sufiyan Shaikh - 30.07.2023 07:36

Amazing tutorial😊😊 very nice explanation.

Ответить
Shinjo Moxuba
Shinjo Moxuba - 28.07.2023 19:08

thanksss

Ответить
Shahid
Shahid - 25.07.2023 21:12

"I just love the way you teach us the pure magic of JS "❤🙌🔥

Ответить
Версусы Школьников
Версусы Школьников - 17.07.2023 10:48

In all the browsers its working, but in FIrefox local storage doesn't preserve info to cart.html page, it just is empty until you set it to [] by that OR statement

Ответить
18Wheels Later
18Wheels Later - 16.07.2023 02:05

Thank you for the detailed lesson!

Ответить
Bamidele Gbadurabi
Bamidele Gbadurabi - 08.07.2023 10:53

Bravo!! You are great teacher in deed, keep it up. Can you please handle everything about react js from scratch in a very simple and smart manner you did in this video.

Ответить
Sekar N
Sekar N - 24.06.2023 12:24

awesome teaching bro,

Ответить
Pratiksha Singh
Pratiksha Singh - 17.06.2023 13:59

I have an issue can anyone help me ....I couldn't see image by using JavaScript....and other thing that I can image by using HTML in this project please help mee

Ответить
ABDULLAH Nazir
ABDULLAH Nazir - 16.06.2023 08:45

well explained but we need you to teah us how to make a word counter cause you said ya x infinity

Ответить
idowu hassan
idowu hassan - 08.06.2023 22:40

Pls how do you generate these items when they’re paginated

Ответить
Anuta Robert
Anuta Robert - 02.06.2023 12:09

Thanks! This is a trully small way to express my gratitude for this video!

Ответить
Назар
Назар - 29.05.2023 12:39

i tried to make that project from scratch by myself, before watching how the tutor did it. Its work as it must, but i have like in 10x times more code then teacher. Dam't, on the one hand i'm glad that i did it, but from the other - upset couse spend to much time and wrote a huge mess with code

Ответить
Juno106
Juno106 - 27.05.2023 17:23

In the cart page it’s says that my image and price is undefined Anny fix ?

Ответить
Shankar
Shankar - 23.05.2023 05:10

Thank you

Ответить
पियूष
पियूष - 22.05.2023 08:46

How to implement payment gateway and order confirmation 😊

Ответить
shrey
shrey - 17.05.2023 15:04

Hi Joy, I just wanted to mention that the body tag by default will have the position: static as the default property. Very good tutorial. Cleared many of my concepts. Thank you for teaching shortcuts as well.

Ответить
Anshika Goswami
Anshika Goswami - 12.05.2023 12:08

thankyou so muchhhhhhhhhhhhhhhhhhhhh

Ответить
Anshika Goswami
Anshika Goswami - 12.05.2023 11:22

please also bring a salesforce lwc course,admin

Ответить
Anshika Goswami
Anshika Goswami - 12.05.2023 11:21

thankyou so much

Ответить
Satheesh Kumar
Satheesh Kumar - 11.05.2023 21:07

Great 💯

Ответить
idowu hassan
idowu hassan - 04.05.2023 17:33

I’m using parcel but the images don’t show up when I used js to inject it into the HTML but display when I just use normal HTML, do you know why that could be happening?

Ответить
Jack Collier
Jack Collier - 30.04.2023 14:06

How does your Javascript file pick up html emmet things

Ответить
Rekintain
Rekintain - 26.04.2023 20:23

the video is very good, but nobody is going to talk about genshin impact in the bar?

Ответить
BreOutside Yoga, Running & Fitness
BreOutside Yoga, Running & Fitness - 23.04.2023 16:35

Wow! Joy taught so much about the keyboard shortcuts for CSS alone. This was amazing.

Ответить
Bre B
Bre B - 23.04.2023 04:33

Joy talks so fast, that I don't have to change the setting to 1.25 speed (which is not a bad thing. Perfect for this ADHD developer). Awesome tutorial.

Ответить
Kevin K
Kevin K - 22.04.2023 18:33

whoa!! its taken me 3 days to go slowly over this vid while writing down new concepts that am learning, thank you. One more question, for the check out section at the end, what payment getaways would one add to the project, if possible kindly share with us your suggestions or learning resources. Once again, Thank you!!

Ответить
catzowatzo
catzowatzo - 21.04.2023 19:43

i turned off my adblock for u 🤝🤙🏿

Ответить
mini project
mini project - 18.04.2023 19:38

How to retrieve through addtocart button product inner product I mean object inner objects having product UpTo 8 time?

Ответить
mini project
mini project - 16.04.2023 23:12

As you make plus button for increments decrement if we make same procoess for product I mean product consist of inner child then how can we do this?

Ответить