+ 2

Why are spam and eggs called placeholder variables? What is a placeholder variable?

19th Nov 2017, 4:17 PM
Balamurali Chellam
Balamurali Chellam - avatar
3 Answers
+ 3
It doesn't have to be spam and eggs, can be anything you like. But I think spam and eggs is a reference to an old comedy show called Month Python. I've also seen foo and bar, but like I said, you can name them almost what you like, there are a few rules. Placeholder variables just mean the name you give to variables so you can reference them in your code.
19th Nov 2017, 7:06 PM
Bagshot
Bagshot - avatar
+ 2
Thank u Bagshot
19th Nov 2017, 7:18 PM
Balamurali Chellam
Balamurali Chellam - avatar
0
Thank you so much
25th Aug 2019, 9:56 PM
Lawal Adekunle Jimoh
Lawal Adekunle Jimoh - avatar