1.5 KiB
1.5 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
id | title | challengeType | videoUrl | forumTopicId | dashedName |
---|---|---|---|---|---|
bad87fee1348bd9aedf08802 | Decommentare l'HTML | 0 | https://scrimba.com/p/pVMPUv/cBmG9T7 | 18329 | uncomment-html |
--description--
I commenti sono un modo per lasciare nel tuo codice informazioni per altri sviluppatori senza modificare l'output mostrato all'utente finale.
Commentare è anche un modo conveniente per rendere inattivo il codice senza doverlo eliminare completamente.
I commenti in HTML cominciano con <!--
e finiscono con -->
--instructions--
Decommenta i tuoi elementi h1
,h2
e p
.
--hints--
Il tuo elemento h1
dovrebbe essere visibile nella pagina decommentandolo.
assert($('h1').length > 0);
Il tuo elemento h2
dovrebbe essere visibile nella pagina decommentandolo.
assert($('h2').length > 0);
Il tuo elemento p
dovrebbe essere visibile nella pagina decommentandolo.
assert($('p').length > 0);
Nessun tag finale di commento dovrebbe essere visibile sulla pagina (ad es. -->
).
assert(!$('*:contains("-->")')[1]);
--seed--
--seed-contents--
<!--
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
-->
--solutions--
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>