“JavaScript Crie strings” Respostas de código

JavaScript Crie strings

//strings example
const name = 'Peter';
const name1 = "Jack";
const result = `The names are ${name} and ${name1}`;
SAMER SAEID

JavaScript Crie strings

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript Strings</h2>

<p>You can use quotes inside a string, as long as they don't match the quotes surrounding the string:</p>

<p id="demo"></p>

<script>
var answer1 = "It's alright";
var answer2 = "He is called 'Johnny'";
var answer3 = 'He is called "Johnny"';

document.getElementById("demo").innerHTML =
answer1 + "<br>" + 
answer2 + "<br>" + 
answer3;
</script>

</body>
</html>
SAMER SAEID

Respostas semelhantes a “JavaScript Crie strings”

Perguntas semelhantes a “JavaScript Crie strings”

Mais respostas relacionadas para “JavaScript Crie strings” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código