Those who are geting confusted "todo" is just a parameter in every function its not related our main myToDo, if you want you can change toDo to anything you want , (for example functionParameter) just make sure , .meetings is still present because its our main object's property which is updated.
*meetDone = meetDone + meet* and *meetLeft = meetings - meetDone* would be what my common sense would have accepted, my two cents! It felt like forcefully deviating from a job to explain a particular logical error.
Trello v2 went a little wrong: the meetdone method should be: let meetDone = function (todo, meetingsDone = 0) { todo.meetDone = todo. meetDone + meetingsDone } This increases the readibility and if any one later require only the meeting done count we have proper value to return.
nomesh gajare It may not be so rude but I believe it's not the most polite way to give answer. Also why I said this is cuz sometimes he makes fun of people in the comments. I have seen it myself.
Hitesh sir what the todo refers in the parameter? I could understand the meet parameter. Moreover, the object name is myTodos. Why we are writing todo.meetings? If possible could anyone clear me the concept?
sir i have a question. here meetDone is a property in myTodos object. also meetDone is a function name in this program. then why error is not flaged during execution??
something declared within curly braces is consdered local (variable) and is not accessible outside the braces. Search 'scope in js' for more information.
hi, you defined the class myTodos, but when you call the function, say addMeeting and pass the parameters todo, and meeting = 0, how does the computer know that the parameter todo refers to the myTodos object. In other words, when I type todo and then a period, how does the computer show the properties and methods of the myTodos object?
Hi Hitesh, thanks for the video and its really helpful. We can also write meetDone as todo.meetDone = meet - todo.meetDone In this case we would be avoiding the debugging problem
Sir , can we assign direct value of meet To todos.MeetDone or todos.TotalMeeting?? Instead of subtracting up and then adding again for minus plus case ???
when we were passing object todo as a parameter in all the functions, weren't we suppose to pass myTodos as the parameter instead of todo . Please clarify if someone knows
Waiting for ur next video is like waiting for bahubali 2 after watching बाहुबली 1.. Really its awesome feeling.. In each video we start with excitement of learning new things..
meetDone is a property in myTodos and meetDone is a function also, so can we create function name same as property or variable name? it can be confusing in large program
instead of changing this to + we can change the (-) in meetDone function and make it (+), as we are counting the no. of meetings that has already been done .
Would somebody help explain something very basic, todo.meetings = todo.meetings+ meet, here what is the "todo" is it an object or an function o what? thank you very much!
when iam adding let meetleft = todo.meetings + todo.meetDone and printing to console by console.log(meetleft ) The output is : NaN can anyone please explain me why and how to solve this..
Those who are geting confusted
"todo" is just a parameter in every function its not related our main myToDo,
if you want you can change toDo to anything you want , (for example functionParameter)
just make sure , .meetings is still present because its our main object's property which is updated.
After 20 episodes, I finally come to the part where I don’t know what’s happening... Todo? Reset? Nan?
Bro took word out of my mouth
*meetDone = meetDone + meet* and *meetLeft = meetings - meetDone*
would be what my common sense would have accepted, my two cents!
It felt like forcefully deviating from a job to explain a particular logical error.
Yeah exactly, it looks good
Can You Please explain Why they had take todo as function's Parameter?
i Did it in the same way , as we are counting the no. of meeting we have completed
I am also getting same confusion
@@manibhushanabhishek687 Sir they had to do that because when calling the function we are passing an object. So todo here refers to that object.
Trello v2 went a little wrong:
the meetdone method should be:
let meetDone = function (todo, meetingsDone = 0) { todo.meetDone = todo. meetDone + meetingsDone
}
This increases the readibility and if any one later require only the meeting done count we have proper value to return.
Then how would it be possible to explain the logical error in this video ?
Hitesh Choudhary You don't have to be rude sir, you can just say it's for explaining logical errors.
Was it really a rude reply?? @hitesh choudhary. I thaught that it was a decent answer in a question itself.
nomesh gajare It may not be so rude but I believe it's not the most polite way to give answer. Also why I said this is cuz sometimes he makes fun of people in the comments. I have seen it myself.
Chill dude, that was just a statement.
Great approach...tredo is great way to revise all the concept...Great teaching....way to approach complicated topics is really incredible
Thanks in a million. Great teachers are hard to find.
Sir meetDone was still -ve can't we fix it using todo.meetDone = todo.meetDone +meet
It is good approach too
Great sir.... I learn something new in JavaScript..... Even it is not there in my syllabus..... Thanks brother
hi Hitesh can you please explain what have you used todo as function parameter and how it is accessing the element of object
You courses are really good sir..
Hitesh sir what the todo refers in the parameter? I could understand the meet parameter. Moreover, the object name is myTodos. Why we are writing todo.meetings? If possible could anyone clear me the concept?
sir i have a question.
here meetDone is a property in myTodos object.
also meetDone is a function name in this program.
then why error is not flaged during execution??
something declared within curly braces is consdered local (variable) and is not accessible outside the braces. Search 'scope in js' for more information.
hi, you defined the class myTodos, but when you call the function, say addMeeting and pass the parameters todo, and meeting = 0, how does the computer know that the parameter todo refers to the myTodos object. In other words, when I type todo and then a period, how does the computer show the properties and methods of the myTodos object?
Hi Hitesh, thanks for the video and its really helpful.
We can also write meetDone as todo.meetDone = meet - todo.meetDone
In this case we would be avoiding the debugging problem
Can You Please explain Why they had take todo as function's Parameter?
Thank You, Sir, U made me confident that I can learn things.
Sir , can we assign direct value of meet To todos.MeetDone or todos.TotalMeeting?? Instead of subtracting up and then adding again for minus plus case ???
Lovely one!
sorry to ask, can andybody tell me what is this todo ? is this MyTodo todo is same ? because we are accessing object values todo. meeting etc etc. how
Congratulations for silver play button. 😉
Which package you are using for snippets ??...
Hello Sir, could you please explain todo.meetings = todo.meetings + meet? It's a bit confusing. Thanks
when we were passing object todo as a parameter in all the functions, weren't we suppose to pass myTodos as the parameter instead of todo . Please clarify if someone knows
Waiting for ur next video is like waiting for bahubali 2 after watching बाहुबली 1.. Really its awesome feeling.. In each video we start with excitement of learning new things..
Instead of changing - to + in getMySummaryOfDay, You can change - in meetDone function. So That meetingDone will not be -5.
meetDone is a property in myTodos and meetDone is a function also, so can we create function name same as property or variable name? it can be confusing in large program
He admitted that the naming scheme was not very good. It was just for instruction purposes.
@@BUJU2007 ok thanks
Hey bro I have small doubts
meetleft =total meeting - meetdone
But u said oppositely I didn't get u r point can u plz give me solution
one of the difficult video to watch. Today i know that i am very beginner.
same here
i didn't understand what did u done in whole episode sir , very confusing
instead of changing this to + we can change the (-) in meetDone function and make it (+), as we are counting the no. of meetings that has already been done .
Hi
test
Would somebody help explain something very basic, todo.meetings = todo.meetings+ meet, here what is the "todo" is it an object or an function o what? thank you very much!
hey did you did you get the the explaination??? if yes then please tell me
todo is a parameter which stores object, so todo is also an object
Sir i have a question which one have a great scope a network engineer or software engineer in canada ...
Next version of everything be always Cool 😋👌
I'm getting "Nan" what is the solution for this plz help me..
Add this line
todo.meetdone = meet - todo.meetdone
instead of
todo.meetdone = todo.meetdone - meet
in "meetdone" if (todo.meetdone=todo.meetdone+meet) this problem would not arrive
Can we add functions inside a function??
when iam adding
let meetleft = todo.meetings + todo.meetDone
and printing to console by
console.log(meetleft )
The output is : NaN
can anyone please explain me why and how to solve this..
same problem
@@timoba2523 I figured out my problem my problem was a typo mistake I type todo.meetDone but actually it is todo.meetdone. now the problem is solved
@@THWUFAILUZAMAN haha I made the same mistake
Trello version 2.0 awesome
Sir, what the really use of it in js.
todo.meetdone = todo.meetings-meet
as simple as isn't it ?
Sir please do a series on python
When I run the code it is giving me 'NaN' instead of any number can anyone help me?
You are doing some basic problem. Save your program first and then run it
how to know todo is an instance of myTodods ?
Amazing video sir
Can some one plz explain what is the role of reset() function !
thank you
It will reset every data. And give us everything 0. So we can start the other day.
5:13 I see what you did there. xDD
At 6:38 what was that background sound, I got scared, I felt something happened in my room.
I am not getting out, my output is "You have NaN meetings today" I am not getting value here, Any one can help?????
sana wehre you from. i am frm lahore. are you getting any help?
@@natureonearth4459 yes please
i heard meet 'a million times' and i am now completely lost... need a break 🤦🏼♂🤦🏼♂
I can't understand its confusing 😞
Why you are not putting semicolon in your statement is not necessary??
hey, where is my comment,, I did comment. wth
Again 1st one to watch..
My output is NaN
I am first, but I won't get heart. 🙁
please help me here
first