This is weird. How does this code not work? Does the computer confuse between “age” and age in the last line? It can’t be, right? Basically, it should just print out a string and the value of the variable. Any idea what’s wrong with this code?
Thanks,
i am so confused. I am watching a tutorial. This guy says i dont need “” mark if i store an int value. We just named it differently. but how come his variable works?
I’m not familiar with the video, but that code should produce an error. In fact it’s highlighted like that because the text editor knows it’s invalid. It’s possible that this will produce an error later in the video and he’ll fix it or he may be in the middle of editing.