* Add link to boilerplate Glitch file The boilerplate link is hard to see in the previous "introduction" page. I was using the old Glitch project link, and was confused. When I googled for a solution, it was clear than others had also been quite confused. I believe this additional instruction will help many people. * Direct people back to introduction page Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * Remove unnecessary indentation Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * Remove spaces on empty line Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * Remove spaces on empty line Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * Add empty line to fix markdown link Markdown link needs a blank line to render correctly * fix: add extra line to prevent linting error * fix/remove-bullet-points Co-authored-by: Randell Dawson <rdawson@onepathtech.com> Co-authored-by: Tom <tmondloch01@gmail.com>
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | ||
| id: 587d7fb0367417b2b2512bed
 | ||
| title: Meet the Node console
 | ||
| challengeType: 2
 | ||
| forumTopicId: 301515
 | ||
| ---
 | ||
| 
 | ||
| ## Description
 | ||
| <section id='description'>
 | ||
| During the development process, it is important to be able to check what’s going on in your code. Node is just a JavaScript environment. Like client side JavaScript, you can use the console to display useful debug information. On your local machine, you would see the console output in a terminal. On Glitch you can open the logs in the lower part of the screen. You can toggle the log panel with the button ‘Logs’ (top-left, under the app name).
 | ||
| We recommend to keep the log panel open while working at these challenges. By reading the logs, you can be aware of the nature of errors that may occur.
 | ||
| </section>
 | ||
| 
 | ||
| ## Instructions
 | ||
| <section id='instructions'>
 | ||
| 
 | ||
| If you have not already done so, please read the instructions in [the introduction](/learn/apis-and-microservices/basic-node-and-express/) and start a new project on Glitch using [this link](https://glitch.com/#!/import/github/freeCodeCamp/boilerplate-express/).
 | ||
|   
 | ||
| Modify the <code>myApp.js</code> file to log "Hello World" to the console. 
 | ||
| 
 | ||
| </section>
 | ||
| 
 | ||
| ## Tests
 | ||
| <section id='tests'>
 | ||
| 
 | ||
| ```yml
 | ||
| tests:
 | ||
|   - text: <code>"Hello World"</code> should be in the console
 | ||
|     testString: 'getUserInput => $.get(getUserInput(''url'') + ''/_api/hello-console'').then(data => { assert.isTrue(data.passed, ''"Hello World" is not in the server console''); }, xhr => { throw new Error(xhr.responseText); })'
 | ||
| 
 | ||
| ```
 | ||
| 
 | ||
| </section>
 | ||
| 
 | ||
| ## Challenge Seed
 | ||
| <section id='challengeSeed'>
 | ||
| 
 | ||
| </section>
 | ||
| 
 | ||
| ## Solution
 | ||
| <section id='solution'>
 | ||
| 
 | ||
| ```js
 | ||
| // solution required
 | ||
| ```
 | ||
| 
 | ||
| </section>
 |