 
        Home > JavaScript Questions > What will be the output of the code below?
                        var str = "abcd";
                        str[0] = "b";
                        console.log(str);
                
            The above code will output the following to the console:
                    abcd 
                
                In js strings are immutable. So we can't change a character within a string.