On Lesson 3 #1791
Replies: 5 comments 8 replies
-
Completing the course should not be your goal, rather, understanding everything the course offers should be the mindset instead. I would recommend going through a vanilla JavaScript course, blockchain fundamentals and preferably expertise/overview of OOP if you are struggling to grasp things. This much should be enough |
Beta Was this translation helpful? Give feedback.
-
I literally take like 2 hours for every half hour of class and I have i am only one year into Javascript....its better you have some understanding of what your doin...even if it takes longer, you'll be happier in the end...no one is judging...take your time and fiddle so you get a better feel of it.. Its worth it in the the end make the $$$$ |
Beta Was this translation helpful? Give feedback.
-
People[] is the model/class and type
public is access
people is the array name itself
hope this helps
…________________________________
From: Ohyathatscool ***@***.***>
Sent: Monday, August 15, 2022 8:27 AM
To: smartcontractkit/full-blockchain-solidity-course-js ***@***.***>
Cc: john cramerec.com ***@***.***>; Comment ***@***.***>
Subject: Re: [smartcontractkit/full-blockchain-solidity-course-js] On Lesson 3 (Discussion #1791)
Well first this confuses me.
From lesson 1
People[ ] public people;
So am I am understanding this correctly "People[ ]" is pointing back to the struct People and creating and array and "people" is the variable to the array.
function addPerson(string memory _name, uint256 _favoriteNumber) public {
people.push(People(_favoriteNumber, _name));
nameToFavoriteNumber[_name] = _favoriteNumber;
I understand that "people.push" is adding to the "People[ ] array" but why do we need to add "People" in the paratheses again. I thought the point of "people" was so we can use that instead of "People"
Hope this makes senses and again thanks for the help.
—
Reply to this email directly, view it on GitHub<#1791 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASTDM3TX2JMCNN4XMFDHG53VZIZR7ANCNFSM56QQ2S5Q>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Honestly this took me a couple head turns at first too. I watched some segments a couple times to get it and cut and paste pieces of code I didn’t understand into google (sorry I’m sure you do that too)….def no a javascript order in this case.
…Sent from my iPhone
Sent from my iPhone
On Aug 15, 2022, at 08:50, Ohyathatscool ***@***.***> wrote:
Thank you so much! Is there any course you recommend?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
@Ohyathatscool Hope this discussion helps you too! #486 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently on Lesson 3 and while I'm kind of understanding the syntax I feel as I am not understanding what I'm doing. Is this normal? How much should I know how to do at this point? I do feel a little discouraged but I will complete the course. My main problem is seeing how everything works together.
Beta Was this translation helpful? Give feedback.
All reactions