Inicio
/
Tecnología
/
Which of the Following Is an Example of a String in JavaScript? ) 123 "Hello, World!" 3.14 True

Problemas

Which of the following is an example of a string in JavaScript? ) 123 "Hello, World!" 3.14 true

Roztwór

Erica élite · Tutor durante 8 años
Weryfikacja ekspertów
3.7 (206 Votos)

Respuesta

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.