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: docs/function-output.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Output of a function
2
2
3
-
When you log a function in MakeCode using `console.log(f)`, you might expect to see something simple like:
3
+
When you log a function using `console.log(f)`, you might expect to see something simple like:
4
4
5
5
```ts
6
6
function f() { return123 }
@@ -25,5 +25,4 @@ function f__P19063(s) {
25
25
}
26
26
```
27
27
28
-
This looks strange if you’re expecting normal JavaScript. But this output is actually a window into how the PXT compiler and MakeCode virtual machine work under the hood.
29
-
You should **never** play around this code, it is how MakeCode compiler reads your TypeScript, and runs it.
28
+
This looks strange if you are expecting normal JavaScript. But this output is actually a window into how the PXT compiler and MakeCode virtual machine work.
0 commit comments