Problemas
Which of the following is an example of a string in JavaScript? ) 123 "Hello, World!" 3.14 true
Solución
Ericaélite · Tutor durante 8 años
Verificación de expertos
3.7 (206 votos)
Responder
In JavaScript, a string is a sequence of characters surrounded by double or single quotes. Among the options provided, "Hello, World!" is an example of a string in JavaScript. The other options are not strings: 123 is a number, 3.14 is a floating-point number, and true is a boolean value.
Haz clic para calificar: