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
Describe the bug
The number.toString() function, should be able to have the argument "radix" when you try this on
the micro:bit makecode website, it will produce this error:
error TS2554: Expected 0 arguments, but got 1.
In actual javascript, you should be able to use this function with an argument. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString
To Reproduce
Goto the javascript editor on makecode, and try the following:
basic.showString(11.toString(2))
Expected behavior
convert 11 to binary and, show the string "1011" on the screen.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome
Version: 77.0.3865.90 64 bit
The text was updated successfully, but these errors were encountered:
Describe the bug
The number.toString() function, should be able to have the argument "radix" when you try this on
the micro:bit makecode website, it will produce this error:
error TS2554: Expected 0 arguments, but got 1.
In actual javascript, you should be able to use this function with an argument.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString
To Reproduce
Goto the javascript editor on makecode, and try the following:
basic.showString(11.toString(2))
Expected behavior
convert 11 to binary and, show the string "1011" on the screen.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: