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

Arrays Forum

View Course » View Exercise

446 points
Picture
Submitted by
王一越
almost 4 years ago

A bug in 1.6.

if I set
$languages{3} = "Pythonn"; or
$languages{4} = "Rubyy";

if you understand my intention.

System give me an error

Oops, try again! It looks like you printed 'Python'--that's one of the original elements! Make sure to print your modified element.

It is a bug for me, I think developers need to change the code behind. Rather check for these letters combination, check the whole word.


3 votes

permalink

Apparently, I found out, if you go to the other discussion, they're talking about how replacing "PHP" with "C++" works. LOL

950 points
187777ab22abc721462978ee1802796f?s=140&d=retro
Submitted by
Aww sum
over 3 years ago


1 vote

permalink

I am experiancing the same error

Oops, try again! It looks like you didn't print 'green ' (the element you modified)!

That was the element I modified and it is clearly modified.

1157 points
70af48c13a7284e4db052efd1a2d70bc?s=140&d=retro
Submitted by
Paul Drinnon
almost 4 years ago


1 vote

permalink

Actually the program is fine just replace the string with anything like your name and add echo to the beginning then it works fine.

1026 points
5261475280ff339827006563_164591793
Submitted by
Bobby Nation
over 3 years ago


1 vote

permalink

I get the correct answer in the terminal, but I also get a message "Oops, try again! It looks like you didn't print 'Paul ' (the element you modified)!"

1157 points
70af48c13a7284e4db052efd1a2d70bc?s=140&d=retro
Submitted by
Paul Drinnon
over 3 years ago


1 vote

permalink

I don't know whats going on because on mine it does not give me any kind of error and I put print/echo $laungauge{3} is equal to my Name

1026 points
5261475280ff339827006563_164591793
Submitted by
Bobby Nation
over 3 years ago


1 vote

permalink

This will Work

<?php
$languages [0] = "Java";
$languages [1] = "JavaScript";
$languages [2] = "PHP";
$languages [3] = "Python";
$languages [4] = "C#";

    echo $languages [0];
  ?>

88 points
C33727fbfb2f5d0d76b45088fdf63695?s=140&d=retro
Submitted by
Akil Edwards
over 3 years ago


0 votes

permalink

This lesson has a bug. Changing "Backbone" to "C++" worked for me.

bug

185 points
Picture
Submitted by
Kyle Stadnyk
over 3 years ago

1 Comment

65c1b0d59fe88271e1e32cf8c6ad3f89?s=140&d=retro Searight almost 3 years ago

Thanks..this lesson was confusing..it works the way you just did it.