anybody who uses js please tell me how you learned and the fastest way to
Write code in blocks, convert to JavaScript, mess around with numbers and stuff, convert back to blocks to see what you changed, repeat.
A few things I learned when I did this:
The “repeat ()” block is a lie and is just a For loop in disguise.
The way Makecode converts block For loops is like this: for (let index = 0; index <= (the number you put in) and that is very annoying because when using arrays you have to do “length of array - 1” every time in blocks when in writing you can just use “<” instead of “<=”
Using arrays is soooo much easier when you don’t have to drag so many “length of” and “get value at” blocks around
Just keep in mind that there are so many more things available in JavaScript than in blocks. You can do pretty much anything an extension can do, because extensions are just some functions that someone wrote and turned into blocks!! Speaking of extensions, open them!! Ignore all the green text because that’s just for telling Makecode how to make them into blocks.
Also look through some of the files in the explorer section under the simulator! And also the tilemap files only show up in there once you use a tilemap in the project.