0
The teacher spent some exercises, one of which was to use Git and run a linter to check several code files. Here he gave me in this code but honestly I could not understand nor identify.
// Você nao pode modificar as linhas de 2 à 5:
const lib = {
abc: 123,
def: 234,
};
object =abc {
def: lib.def,
abc: lib.abc,
xyz: 567,
};
console.log('O valor de abc est' + object.abc);
object = abc
was to be an object with propertiesdef
,abc
andxyz
?– Pedro Pinto
I believe so. Now I don’t understand why Parsing error selecting token {
– Marcelo Medeiros dos Santos
but note that if
object = abc
was to be an Object which variable nameobject
orabc
? change toconst object
and call theobject.abc
should already work– Pedro Pinto
Thanks for the tip
– Marcelo Medeiros dos Santos