pxt-calliope/docs/blocks/variables/change.md
Peli de Halleux fb5bb396e1 more migration to common docs (#370)
* more migration to common docs

* refactoring js

* removed duplicate docs

* migrating more docs

* more refactoring

* migrated browsers page

* updated summary
2017-03-14 12:07:17 -07:00

354 B

@extends

#examples

Example: show the value of a variable

Use the assignment operator to set the value of a variable. Change the value of a variable from 0 to 1 using the change item block. Then display the new value of the variable on the LED screen. Like this:

let x = 0;
x += 1;
basic.showNumber(x);