4:27 - "All right so the next question is pretty technical, but an experienced programmer should be able to help out. So this person asked:"
Initialization of a constant reference with a number
What is the meaning of the following line? Why is this allowed as 0 is an r-value and not a variable name? What is the significance of const
in this statement?
const int &x = 0;
(asked May 15 '18 at 21:35) Initialization of a constant reference with a number
(Note: as presented in the video, the question was not closed and had a score of -10)
4:41 - "Aand the responses, so... first person says:"
Homework? And what does your C++ textbook have to say on the subject? -- May 15 '18 at 21:36 (now deleted)
"And the next person, very helpfully, says:"
Just read a [good book]. -- May 15 18' at 21:38 (now deleted)
"And then, 'here, this link has a similar question', which may or may not have been helpful at all":
Similar: <link to another SO question> -- May 15 18' at 21:39
5:39 - "This next user asks:"
What is e in e.preventDefault()
I am not able to understand the parameter 'e' which is passed to prevent the Default Action in JavaScript
document.getElementById('submit').addEventListener('click', calculate, false);
function calculate(e){
e.preventDefault():
}
(asked Sep 14 '17 at 9:57) What is 'e' in 'e.preventDefault()'?
5:49 - "Now, to an experienced programmer this is pretty obvious. However, if you don't program and you've never seen this or you're new to programming, this is a completely valid question. The responses:"