Spellcheck docs (#1652)

* Spelling mistakes
This commit is contained in:
Sam El-Husseini
2018-11-20 13:26:26 -08:00
committed by GitHub
parent 980bb581ee
commit 7e23340df1
42 changed files with 79 additions and 79 deletions

View File

@ -165,6 +165,6 @@ basic.forever(function () {
## ~ avatar
Well done! You've just coded using a "text programming" language! Starting from blocks, you learned to convert them to JavaScript and then modify the code in the blocks as text. Wow, your're a pro now! Go back to [Blocks To JavaScript](/projects/blocks-to-javascript) to continue with another challenge.
Well done! You've just coded using a "text programming" language! Starting from blocks, you learned to convert them to JavaScript and then modify the code in the blocks as text. Wow, you're a pro now! Go back to [Blocks To JavaScript](/projects/blocks-to-javascript) to continue with another challenge.
## ~

View File

@ -44,7 +44,7 @@ input.onButtonPressed(Button.A, function () {
Do you want to go back to editing with blocks again? MakeCode can convert your JavaScript code back into blocks.
* Replace a few dots `.` with hashmarks `#`.
* Replace a few dots `.` with hash marks `#`.
```typescript
input.onButtonPressed(Button.A, function () {

View File

@ -16,7 +16,7 @@ Just like the blocks toolbox, you can drag and drop snippets of JavaScript. It's
## Suggestions and auto-completion
When you start typing, you will quickly notice a menu of suggestions poping up right under the cursor. The editor is giving you possible snippets of code based on what you've just written (this is something that professional developer uses every day!).
When you start typing, you will quickly notice a menu of suggestions popping up right under the cursor. The editor is giving you possible snippets of code based on what you've just written (this is something that professional developer uses every day!).
When you see the option for what you were trying to type, press **Enter** to insert it... rather than typing it entirely.
@ -43,7 +43,7 @@ Check the **indentation lines** to find your way back to the higher code "levels
When the editor detects a syntax error, it puts red squiggles where it thinks the error is.
Place your mouse over the squiggle to get a detailled error message to help you fix the problem.
Place your mouse over the squiggle to get a detailed error message to help you fix the problem.
![A squiggle message](/static/courses/blocks-to-javascript/jssquiggles.gif)

View File

@ -96,7 +96,7 @@ You see that we used, or called, the function **showMyName** two times and didn'
You can see that a function is really useful when you want to reuse some code, especially if it's a lot of code! But wait, functions are even more powerful when you can send them some information to work with!
The **showMyName** function would really be awesome if it could display anyone's name. So, how can we make it do that? Well, let's use a _parameter_. A parameter is like a variable but it's a special varialble only for the function. It allows your program to send, or _pass_, a value to the function. Just like a variable, the parameter has a [type](/types) for the value passed in it. To use a parmeter with a function, we need to work with its code in the JavaScript editor since using a parameter makes the function too complex to be a block.
The **showMyName** function would really be awesome if it could display anyone's name. So, how can we make it do that? Well, let's use a _parameter_. A parameter is like a variable but it's a special variable only for the function. It allows your program to send, or _pass_, a value to the function. Just like a variable, the parameter has a [type](/types) for the value passed in it. To use a parmeter with a function, we need to work with its code in the JavaScript editor since using a parameter makes the function too complex to be a block.
Go over to the JavaScript editor and change the function's name from **showMyName** to just **showName**. Give it a parameter to display anyone's name by inserting ``name: string`` in between the `(` `)` after the function name.