Javascript Console.log (beginner)

Asked

Viewed 657 times

-1

Hello, I started yesterday to study Js, one of the challenges of Rockseat about Js is to give console.log() and give as a result: "Rua dos Pinheiros". But because it is a string q pull of a variable comes out only : Rua dos Pinheiros , no quotes, how to leave quotes? link to the explanation of the challenge

1 answer

0

One way to resolve is to put the quotes around the string you would like to print.

const endereço = 'Rua dos Pinheiros'
console.log(`Eu moro na "${endereço}"`);
  • i used street: '"Street of the pines" ', and I function here, even so obg

Browser other questions tagged

You are not signed in. Login or sign up in order to post.