Bryson Reynolds
var statement = "I am an immutable value"; // Returns "I am an immutable value"
var otherStr = statement.slice(8, 17); // Returns "immutable"// Example
var example = Immutable.fromJS({
foo: { content: '1' },
bar: { content: '2' }
});// Array
const carMakes = [];
carMakes.push('Ferrari', 'McLaren');
console.log(carMakes); // ['Ferrari', 'McLaren']
// Object
const favorites = {'music': 'Diplo'};
favorites.music = 'Big Gigantic';
console.log(favorites); // {'music': 'Big Gigantic'}
// Another interesting one I found was
const favorites = {'music': 'Diplo'};
favorites = {'music': 'Big Gigantic'}; // Throws an error because you can't rebind to a different value