freeCodeCamp/curriculum/challenges/arabic/02-javascript-algorithms-an.../basic-javascript/understand-string-immutabil...

858 B

id title challengeType videoUrl localeTitle
56533eb9ac21ba0edf2244ba Understand String Immutability 1

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert(myStr === "Hello World", "<code>myStr</code> should have a value of <code>Hello World</code>");'
  - text: ''
    testString: 'assert(/myStr = "Jello World"/.test(code), "Do not change the code above the line");'

Challenge Seed

// Setup
var myStr = "Jello World";

// Only change code below this line

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

After Test

console.info('after the test');

Solution

// solution required