Freecodecamp: Understand String Immutability - Test not passing

Created on 11 Feb 2016  路  4Comments  路  Source: freeCodeCamp/freeCodeCamp

Challenge Understand String Immutability has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

// Setup
var myStr = "Jello World";

// Only change code below this line

mystr = "Hello World"; // Fix Me

![image](https://cloud.githubusercontent.com/assets/9355984/12980921/81787132-d104-11e5-9fff-000569384a55.png)


Most helpful comment

I had a bug with this. But I was able to pass by making it a array. Please see below

// Setup
var myStr = "Jello World";

// Only change code below this line

var myStr = "Hello World";
var myStr1 = ["Hello World"];

myStr1[0] = "H"; // Fix Me

All 4 comments

Check your camel case in the variable name.

I'd also like to recommend posting your questions first in the main chat room or the HelpJavaScript room.

Okay. I will triple check before i log anymore defects. Wrong timings and decisions made by me. Thanks again.

I had a bug with this. But I was able to pass by making it a array. Please see below

// Setup
var myStr = "Jello World";

// Only change code below this line

var myStr = "Hello World";
var myStr1 = ["Hello World"];

myStr1[0] = "H"; // Fix Me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

no-stack-dub-sack picture no-stack-dub-sack  路  44Comments

doubleUTF picture doubleUTF  路  45Comments

tomasvn picture tomasvn  路  47Comments

thecodingaviator picture thecodingaviator  路  42Comments

sadathanwar17 picture sadathanwar17  路  66Comments