Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Javascript
- RL1123
-
1000+ posts
Javascript
As per The Official List of Rejected Suggestions:
2.2 Text-based syntax in ScratchUsually, Scratch users tend to not have any programming experience. So, they use Scratch block coding as a way to get an introduction to block programming. Adding Javascript might be too complex for some people, and it'd probably not see too much use by the community.
Some users wish to code Scratch not with the blocks, but with typing code instead (similar to how more advanced programming languages work). Others are interested in an option to view, convert, or download Scratch code to other programming languages. However, the Scratch Team has discussed this possibility multiple times and has decided every time that it would not be beneficial for beginners or teachers.
- Poi_kaloi
-
7 posts
Javascript
I mean how like in turbo warp the projects can be converted into a java scriptcode
- CST1229
-
1000+ posts
Javascript
(#4)I'd assume because TurboWarp's compiler makes live script editing not possible (this is an inherent limitation of compiling to JavaScript, and it would probably be very hard to solve). And also maybe because of the lack of developers, but that's a thing with every suggestion or added feature.
I mean how like in turbo warp the projects can be converted into a java scriptcode
- BigNate469
-
1000+ posts
Javascript
All TurboWarp does is what Scratch does while running your project, before your project runs. I mean how like in turbo warp the projects can be converted into a java scriptcode
Scratch loops through every block in your code, and calls the JavaScript function associated with it, in real time. Another block does not start running until the previous one is finished. Scratch does this while the project is running.
TurboWarp goes through your code (before you click the green flag), gets the JavaScript function associated with the block, but does not run it immediately. Instead, it adds it to a big block of JavaScript that, once it's done and you click the green flag, runs. This means that it's not reading input from blocks, finding associated functions, and executing those functions in real time- instead, the whole project is already represented as JavaScript and your browser (or in the case of the offline editor, Electron) deals with it from then on.
Scratch interprets, while TurboWarp compiles. That's why TurboWarp is faster. However, you can't re-compile all the code in a project while the project is running without significant lag (not to mention having to restart the project), so you can't edit a project on TurboWarp while it's running (and have those changes immediately applied)- instead, you have to stop the project and restart it for those changes to be applied. This is in contrast to Scratch, where Scratch merely takes note that a block has been added and continues on, as if the block was always there- because it doesn't have to turn every block in your project into JavaScript before it runs anything.
- UchihaBloodlineX
-
1 post
Javascript
I want to do something more challenging like Javascript code. I am already past the block- coding stage I need something more challenging and advanced like javascript code BUT I cant use JavaScript code on scratch and I can't find out how to convert JavaScript to blocks…
- bubgamer07
-
100+ posts
Javascript
I want to do something more challenging like Javascript code. I am already past the block- coding stage I need something more challenging and advanced like javascript code BUT I cant use JavaScript code on scratch and I can't find out how to convert JavaScript to blocks…Snap! has a javascript block, but you need to enable it in settings
- Discussion Forums
- » Questions about Scratch
-
» Javascript