Yea :) in that time, i said push, so people can understand it in a human way, other than using computer keywords like `return`. But yea, the correct word to mention is that return instead of `push` 👍 😊
Hi Anbu, Superbly explained bro. Video is little longer, but the teaching was slow. So no confusions and lots of concepts with the time span of 21 mins, Thanks a lot bro :)
Lets take initialvalue as 10, which will be the previous value for the currentvalue now current value will be added to the previous value. eg: currentvalue as 20 (previousvalue + currentvalue) which means 10 + 20 = 30 now previousvalue = 30 // here there is no need for getting data from the declared variable for the previousvalue.
console.log() is there only for displaying log. It doesn't have the ability to get the input directly from the console. Athuku you have to get the input (prompt) in your browser, aprm entha value va, you can display it in the console. Hope you get my point.