We declare a
movie
object, with two fields: title
and year
:
let movie = { title: "aga", year: 2018 };
To change the value of the title
field to "Ága"
we need to perform:
movie.title = "Ága";
movie{title} = "Ága";
title->movie = "Ága";
movie[title] = "Ága";
More Questions: JavaScript Essentials 1 – JSE1: Final Test
Please login or Register to submit your answer