Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
// declare a variable called newEditionMembers and use it to store
// an array of names
const newEditionMembers = ["Ricky Bell", "Michael Bivins", "Bobby Brown", "Ronnie DeVoe", "Ralph Tresvant"]
console.log(newEditionMembers)
// We are going replace Bobby Brown with Johnny Gill
// by referencing the 3rd element of the array by using index 2
// and then use assignment (just an equal sign) to change
// the value to Johnny Gill
newEditionMembers[2] = "Johnny Gill"
// Log array to confirm "Bobby Brown" was replaced by "Johnny Gill"
console.log(newEditionMembers)
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x