Pular para o conteúdo principal

Questão de Programação — JavaScript — FGV 2022

ProgramaçãoJavaScript
Código
fg057721
Banca
FGV
Órgão
TRT - 16ª REGIÃO (MA)
Ano
2022
Nível
Superior
Cargo
Analista Judiciário - Tecnologia da Informação
Analise o trecho de código JavaScript a seguir.const xxxxx = ...let texto = "";for (const x of xxxxx) {texto += x;}Assinale a definição de xxxxx que não funciona para o código acima.
  1. Aconst xxxxx = "abcdefghijklmnopqrstuvwxyz";
  2. Bconst xxxxx = [undefined, null];
  3. Cconst xxxxx = {10,12,14};
  4. Dconst xxxxx = new Set(["a","b","c"]);
  5. Econst xxxxx =new Map([["Um", 1], ["Dois", 2]]);
Revelar gabarito e comentário

GabaritoC — const xxxxx = {10,12,14};

Link permanente: /questoes/fg057721