You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en-us/tutorials/fundamentals/coding-2/code-a-function.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ end
51
51
```
52
52
53
53
<Alertseverity="warning">
54
-
Type end yourself if the code doesn't autocomplete for some reason. If the function doesn't have an end, your code won't run.
54
+
Type `end` yourself if the code doesn't autocomplete for some reason. If the function doesn't have an `end`, your code won't run.
55
55
</Alert>
56
56
57
57
### Add code to functions
@@ -82,7 +82,7 @@ As you typed, your code should have indented automatically. This makes it easier
82
82
83
83
### Tell the function to run
84
84
85
-
There's one more thing we need to do before the function will work, and that's to tell it to run, also known as **calling** a function. Functions won't run until they are called. To call a function, type the function's name including the `()` at the end.
85
+
There's one more thing we need to do before the function will work, and that's to tell it to run, also known as **calling** a function. Functions won't run until they are called. To call a function, type the function's name including the `()`.
86
86
87
87
1. Under `end`, type `printFood()`.
88
88
@@ -94,7 +94,7 @@ There's one more thing we need to do before the function will work, and that's t
94
94
printFood()
95
95
```
96
96
97
-
2. Test the code. Your favorite food should appear in the Output window.
97
+
2. Test the code. Your favorite food should appear in the [Output](../../../studio/output.md) window.
0 commit comments