[Guide] ES6: var vs. let. Fixes and enhancements (#34221)
· Remove phantom image (purpose?) · Remove unused anchor tag · Delete notes for contributors · Links to MD code + descriptions
This commit is contained in:
		| @@ -1,9 +1,7 @@ | |||||||
| --- | --- | ||||||
| title: Explore Differences Between the var and let Keywords | title: Explore Differences Between the var and let Keywords | ||||||
| --- | --- | ||||||
|  |  Remember to use **`Read-Search-Ask`** if you get stuck. Try to pair program  and write your own code  | ||||||
|  |  | ||||||
|  Remember to use <a>**`Read-Search-Ask`**</a> if you get stuck. Try to pair program  and write your own code  |  | ||||||
|  |  | ||||||
| ### Problem Explanation: | ### Problem Explanation: | ||||||
|  |  | ||||||
| @@ -34,7 +32,7 @@ We need to change each `var` to `let` in our code. | |||||||
|     } |     } | ||||||
|     catTalk(); |     catTalk(); | ||||||
| ``` | ``` | ||||||
|  <a href='https://codepen.io/dylantyates/pen/eKqoGY' target='_blank' rel='nofollow'>Run Code</a> |  [Run code at codepen.io](https://codepen.io/dylantyates/pen/eKqoGY) | ||||||
|  |  | ||||||
| # Code Explanation: | # Code Explanation: | ||||||
|  |  | ||||||
| @@ -42,15 +40,7 @@ By using `let` instead of `var` we can avoid overriding `catName` and `quote`. | |||||||
|  |  | ||||||
| #### Relevant Links | #### Relevant Links | ||||||
|  |  | ||||||
| *   <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var' target='_blank' rel='nofollow'>var</a> | - ["var" - *MDN JavaScript reference*](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/var) | ||||||
| *   <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let' target='_blank' rel='nofollow'>let</a> | - ["let" - *MDN JavaScript reference*](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) | ||||||
|  |  | ||||||
| ##  NOTES FOR CONTRIBUTIONS: |  | ||||||
|  |  | ||||||
| *    **DO NOT** add solutions that are similar to any existing solutions. If you think it is **_similar but better_**, then try to merge (or replace) the existing similar solution. |  | ||||||
| *   Add an explanation of your solution. |  | ||||||
| *   Categorize the solution in one of the following categories — **Basic**, **Intermediate** and **Advanced**.  |  | ||||||
| *   Please add your username only if you have added any **relevant main contents**. ( **_DO NOT_** _remove any existing usernames_) |  | ||||||
|  |  | ||||||
| > See  <a href='http://forum.freecodecamp.com/t/algorithm-article-template/14272' target='_blank' rel='nofollow'>**`Wiki Challenge Solution Template`**</a> for reference. |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user