4 ms·
please can you explain what value = 5 "The value is " + 5 is supposed to do? at the moment i can't work out why it would be frustrating to be unable to t
by andrewcooke 15y ago
please can you explain what
value = 5 "The value is " + 5
is supposed to do? at the moment i can't work out why it would be frustrating to be unable to type something that looks like a syntax error... (i'm assuming it has some meaning in a language i don't know, which i guess would mean php).
edit: what does "say" mean in the reply below? print? evaluate? and does "later" mean in another statement? or replacing what was before?
- Miky 15y agoHe means that he can't say “value = 5” and then later say “"the value is " + 5”.
- stickfigure 15y agoThe problem is that his two lines of code got joined by HN's formatter (which needs two newlines for a real line break). Presumably his desired message was: value = 5 "The value is " + 5