change typescript to javascript
This commit is contained in:
parent
b91de5bad2
commit
f8d6bd280e
@ -35,7 +35,7 @@ Learn about about the [hardware components](/device) of the micro:bit to make th
|
||||
|
||||
## Programming: Blocks or JavaScript
|
||||
|
||||
The student can program the BBC micro:bit using [Blocks](/blocks) or [JavaScript](/typescript), via the [micro:bit APIs](/reference):
|
||||
The student can program the BBC micro:bit using [Blocks](/blocks) or [JavaScript](/javascript), via the [micro:bit APIs](/reference):
|
||||
|
||||
```blocks
|
||||
basic.showString("Hi!");
|
||||
@ -45,7 +45,7 @@ basic.showString("Hi!");
|
||||
|
||||
When a user has her code ready, she can connect her BBC micro:bit to a computer via a USB cable, so it appears as a mounted drive (named MICROBIT).
|
||||
|
||||
Compilation to ARM thumb machine code from [Blocks](/blocks) or [JavaScript](/typescript) happens in the browser.
|
||||
Compilation to ARM thumb machine code from [Blocks](/blocks) or [JavaScript](/javascript) happens in the browser.
|
||||
|
||||
The student is prompted to save the ARM binary program to a file, which she then simply drags to the micro:bit mounted drive,
|
||||
which flashes the micro:bit device with the new program.
|
||||
|
@ -1,8 +1,8 @@
|
||||
# TypeScript
|
||||
# JavaScript
|
||||
|
||||
You can write micro:bit programs in a subset of [TypeScript](https://www.typescriptlang.org).
|
||||
TypeScript itself is a superset of JavaScript, and many micro:bit programs,
|
||||
especially at the beginner's level, are also just plain JavaScript.
|
||||
You can write micro:bit programs in a subset of [TypeScript](https://www.typescriptlang.org), a superset of JavaScript.
|
||||
Many micro:bit programs, especially at the beginner's level, are just plain JavaScript. TypeScript introduces class-based
|
||||
object-oriented programming, such as:
|
||||
|
||||
```js
|
||||
class Greeter {
|
@ -110,8 +110,8 @@
|
||||
"path": "/blocks"
|
||||
},
|
||||
{
|
||||
"name": "TypeScript",
|
||||
"path": "/typescript"
|
||||
"name": "JavaScript",
|
||||
"path": "/javascript"
|
||||
}
|
||||
],
|
||||
"sideDoc": "getting-started"
|
||||
|
Loading…
Reference in New Issue
Block a user