// These are correct:Por supuesto, está bien usar solo un estilo de citas. Puede escapar de las comillas dentro de la cadena usando el carácter de escape de barra invertida (\):
const grouchoContraction = "I've had a perfectly wonderful evening, but this wasn't it.";
const quoteInString = "Groucho Marx once said 'Quote me as saying I was mis-quoted.'";
// This is incorrect:
const uhOhGroucho = 'I've had a perfectly wonderful evening, but this wasn't it.';
// Correct use of same quotes:
const allSameQuotes = 'I\'ve had a perfectly wonderful evening, but this wasn\'t it.';
href
, o escape de las existentes. Mantenga las comillas dobles alrededor de toda la cadena.
href
"#Home", ya sea cambiándolos o escapándolos.'
testString: 'assert(code.match(//g), "Your code should fix the quotes around the href
value "#Home" by either changing or escaping them.");'
- text: Su código debe mantener las comillas dobles alrededor de toda la cadena.
testString: 'assert(code.match(/".*?<\/p>";/g), "Your code should keep the double quotes around the entire string.");' ```
Click here to return home
"; console.log(innerHtml); ```