Corrected grammar and typos (#28105)

This commit is contained in:
SufiyanSamnani
2018-10-24 13:52:01 -07:00
committed by Jonathan Grah
parent 59a6c70524
commit 5a575c2429

View File

@ -3,10 +3,10 @@ title: Output
---
## Output
There are 4 most common ways you will be outputting your data through console. These will be used the most part of your development process.
There are 4 common ways in which data can be output to the console. These will be the primarily used output methods as part of your development process.
#### `console.log`
It is the most common and used way to output the data. It's a common practice to insert a couple of these between statements to uderstand how the data is flowing and processed. Also, you can use `debugger` or breakpoints in devtools to do the same without polluting your code.
It is the most commonly used way to output the data. It's a common practice to insert a couple of these between statements to uderstand how the data is flowing and processed. Also, you can use `debugger` or breakpoints in devtools to do the same without polluting your code.
```javascript
var numbers = [ 1, 2, 3, 4, 5, 6, 7];
@ -16,7 +16,7 @@ numbers.forEach(function(number){
```
#### `console.warn`
As you guessed by the name this is used for showing warnings, and it's typical yellow color differentiates it from error red & `console.log`.
As you guessed by the name this is used for showing warnings, and it's typical yellow color differentiates it from an error's red text & `console.log`.
```javascript
function isAdult(age){
@ -30,7 +30,7 @@ function isAdult(age){
#### `console.error`
As you can guess, this is used when throwing an exception or in error in code. Gives you the red error message to grab attention fast.
This is used when throwing an exception or an error. Errors usually show up in red text.
#### `console.table`