scrimba
The JavaScript Language [JSL]: Module 1 (Syntax)
Mutability vs. Immutability
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Mutability vs. Immutability
by
AboutCommentsNotes
Mutability vs. Immutability
by
Expand for more info
index.css
run
preview
console
/* Reset some default styles for the page */
body, p {
margin: 0;
padding: 0;
background-color: black;
}

body {
background-image: url('on-mute.gif');
background-size: cover;
background-repeat: no-repeat;
background-position: center; /* Center the background image */
/* background-attachment: fixed; Optional: Keeps the background fixed */
height: 100vh; /* Make the background fill the entire viewport height */
overflow: hidden; /* Hide any overflow content */
display: flex; /* Use flexbox to center the h1 vertically and horizontally */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}

/* Style the h1 element */
h1 {
font-weight: bold;
font-size: 20px;
text-align: center;
color: white; /* Change text color to white */
}
Console
"Trying to change name: BUDDY"
,
"Original name: Buddy"
,
"Updated age: 6"
,
"Updated type through reference: Parrot"
,
"Final Pet Profiles:"
,
{name:
"Buddy"
, age:
6
, type:
"Dog"
}
,
{name:
"Whiskers"
, age:
3
, type:
"Parrot"
}
,
/index.html
LIVE