Erro no URL freecodecamp

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.0.0; ASUS_Z012DC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Mobile Safari/537.36

Challenge: Get Query Parameter Input from the Client

Link to the challenge:
https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/get-query-parameter-input-from-the-client


Please post your code or a link to your repl instead of hard to read screenshots. Thank you.

Esse é o código da resposta dica.

You posted two pictures. Pictures are bad. Don’t post pictures.

Please post the actual link to your actual code

Descobri o problema, @lindomaraqo . No seu código, na linha var{first: firstName, last: lastName}= req.query;, separe a palavra ‘var’ da primeira chave. Além disso, você está usando aspas simples na linha name: ‘${firstname} ${lastname}’. Para pegar o valor das variáveis dentro da string, é preciso usar backticks (a crase, no português), assim: name: `${firstname} ${lastname}`. Teste conforme eu coloquei aqui. Abraço.

1 Like