Any tips on how to learn JavaScript or Python? (MakeCode Edition)

So, I am very efficient in using Blocks but since when you have too many Blocks, the editor space kinda… lags. A little too much. The other coding languages do not have this issue, although I am not very familiar with them in their MakeCode variant. Any tips or lessons that teach these languages? All the lessons I checked only showcase Blocks. (I know the JavaScript in here is labelled “TypeScript” for some reason.")

4 Likes

when you use an image click at the start of the line the color palette to use the paint screen in js

1 Like

idk, do you know about normal js? (ECMAScript, by its formal name)

3 Likes

JavaScript and TypeScript are basically the same thing (y’all please don’t start a war over that!) so I would look at the typescript thing. The thing that I used was actually just placing blocks in an empty project and then switching back and forth between blocks and JavaScript to see which blocks becomes what code!

3 Likes

I recommend placing one or two blocks, then checking the JavaScript or Python code and seeing how it is formatted. Once you do that with a certain block, you can practice typing it. That’s how I learned it anyway.

3 Likes

No, I’m sorry they are NOT the same.

Javascript


JavaScript, or known by its formal name, ECMAScript, is built mainly for web development paired with HTML5 or CSS3. However, it can be used to write web apps, LLMs(Large Language Models like ChatGPT) or backend scripts.

However, Javascript’s functionality to write extremely advanced scripts like a Chess Website like chess.com wouldn’t be that simple and easy. That is where Typescript comes in.


TypeScript




Typescript is similar to Javascript in many ways, but also very different. For one, take syntax; the unique “language” that each program understands. Whereas JavaScript is much easier to learn, due to its simple syntax, Typescript has more advanced feature that require advanced syntax.

With Typescript, you can build complex web applications by adding static typing to your JavaScript code

Static Typing is a feature where you could declare a variable during compilation. It’s useful for more advanced apps, like games on the Internet or even to program Makecode Arcade!!

Conclusion

Javascript is in many ways different from TypeScript, both in syntax, and in features and uses.
They are NOT the same.


Hope this clears things up!!
4 Likes

chill out @Josef bro he said that lets not start a war

2 Likes

Yeah sry but I kinda agree with @WoofWoof

2 Likes

sure does @Josef thanks!

1 Like

Its just for info

2 Likes

Yes, I do know actual JavaScript.

2 Likes

That was my original plan, but my computer kind of lags too much sometimes.

1 Like

Makecode uses Static Typescript. So when it says “JavaScript” it’s not really JavaScript, hence why the TypeScript tutorial would be a good place to start!
If you need any help just ask! You can also look at the JavaScript demo projects on the Makecode Arcade home page, or open projects from other people on the forum to see how they do things! When I started to ditch blocks, I found it very helpful to open a new project, place a few blocks, and then convert to JavaScript to see what the code looked like!

Also y’all don’t get all on @Josef’s case for the TypeScript vs JavaScript explanation. It wasn’t an attack on my character or anything and I enjoyed reading it!

2 Likes

Hmm oh ok thanks it was meant to clear up on confusion as i was also super confused b4 learning webdev

also, pointing out that java ≠ javascript ≠ typescript

2 Likes

Nice!

1 Like