This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Arrays Forum

View Course » View Exercise

84 points
55b7f818e39efe811900012f_252639110
Submitted by
Megin | u!6aW
about 2 years ago

When the ECHO $languages[2]; does not validate as CORRECT

This one gave me a good headache.
Apparently the actual VALUE of the echoed variable is checked. And it only checks a few languages. Good example of How-Not-to-Validate-Your-Things. ^^
It didn't know "Assembly" for a language.
It does know "C++" though! (see older posts below)

Good:
$languages[2] = "C++";
echo $languages[2];;

Bad:
$languages[2] = "Assembly";
echo $languages[2];;

Question: Will this validation be fixed? (if (yes) {When?;} else {shove_it;} ;)
I can imagine that this can be severely confusing and demotivating for beginners.


1 vote

permalink

thanks for the tip!!

33 points
6b1bfa1e39cc7297b16c81ad9eb56c30?s=140&d=retro
Submitted by
emaanm
about 2 years ago


0 votes

permalink

Thanks!!! :)

794 points
C49eab439ad14a7072491a3d7943ab4c?s=140&d=retro
Submitted by
yapi10
about 2 years ago