* fix: changed challenge test text to use should * fix: changed have to be used in Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: reworded test verbiage Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: improved test verbiage Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: improved test verbiage Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: corrected typo Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: corrected typo Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: changed have the to be used in Co-Authored-By: Tom <20648924+moT01@users.noreply.github.com> * fix: corrected verbiage Co-Authored-By: Parth Parth <34807532+thecodingaviator@users.noreply.github.com>
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| id: bad87fee1348bd9aedf08802
 | |
| title: Uncomment HTML
 | |
| challengeType: 0
 | |
| videoUrl: 'https://scrimba.com/p/pVMPUv/cBmG9T7'
 | |
| forumTopicId: 18329
 | |
| ---
 | |
| 
 | |
| ## Description
 | |
| <section id='description'>
 | |
| Commenting is a way that you can leave comments for other developers within your code without affecting the resulting output that is displayed to the end user.
 | |
| Commenting is also a convenient way to make code inactive without having to delete it entirely.
 | |
| Comments in HTML start with <code><!--</code> and end with a <code>--></code>
 | |
| </section>
 | |
| 
 | |
| ## Instructions
 | |
| <section id='instructions'>
 | |
| Uncomment your <code>h1</code>, <code>h2</code> and <code>p</code> elements.
 | |
| </section>
 | |
| 
 | |
| ## Tests
 | |
| <section id='tests'>
 | |
| 
 | |
| ```yml
 | |
| tests:
 | |
|   - text: Your <code>h1</code> element should be visible on your page by uncommenting it.
 | |
|     testString: assert($("h1").length > 0);
 | |
|   - text: Your <code>h2</code> element should be visible on your page by uncommenting it.
 | |
|     testString: assert($("h2").length > 0);
 | |
|   - text: Your <code>p</code> element should be visible on your page by uncommenting it.
 | |
|     testString: assert($("p").length > 0);
 | |
|   - text: All trailing comment tags should be deleted, i.e. <code>--></code>.
 | |
|     testString: assert(!/[^fc]-->/gi.test(code.replace(/ *<!--[^fc]*\n/g,'')));
 | |
| 
 | |
| ```
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Challenge Seed
 | |
| <section id='challengeSeed'>
 | |
| 
 | |
| <div id='html-seed'>
 | |
| 
 | |
| ```html
 | |
| <!--
 | |
| <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>
 | |
| -->
 | |
| ```
 | |
| 
 | |
| </div>
 | |
| 
 | |
| 
 | |
| 
 | |
| </section>
 | |
| 
 | |
| ## Solution
 | |
| <section id='solution'>
 | |
| 
 | |
| ```js
 | |
| <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>
 | |
| ```
 | |
| 
 | |
| </section>
 |