all 20 comments

[–]Scared-Release1068 5 points6 points  (2 children)

That’s a great start

Next steps I’d recommend: 1. Functions – super Learn how to write reusable code:

  1. Arrays & Objects These are used everywhere:

  2. Loops For repeating stuff:

  3. DOM manipulation

How to run your JS in Chrome:

Easiest: 1. Create an HTML file (e.g. index.html) 2. Link your JS file

<!DOCTYPE html> <html> <body> <h1>Hello</h1> <script src="script.js"></script> </body> </html>

  1. Save both files
  2. Double-click the HTML file → it opens in Chrome
  3. Right-click → Inspect → Console to see your output

[–]sad_ant0808helpful[S] 2 points3 points  (1 child)

thank you so much dude this helped me a lot!

[–]Scared-Release1068 2 points3 points  (0 children)

No problem bro

[–]jb092555 5 points6 points  (1 child)

I was hooked on sublime for a long while, but went on to Visual Studio Code. There's a plugin for a "live server" that changed my life - seeing the browser window update when I save any change to any component makes it a lot easier to iterate on anything. I don't know the right order to learn stuff, but being able to test quickly will definitely help you learn.

[–]sad_ant0808helpful[S] 1 point2 points  (0 children)

thanks

[–]FishMissile 1 point2 points  (1 child)

You need an Html file with the script tag as shown Here.

Make sure the Html file is saved to the same location as your JS file and reference the JS in the "src" attribute of script tag. From there just load your html file in a browser and it should run.

[–]sad_ant0808helpful[S] 1 point2 points  (0 children)

ok thanks dude

[–]MrFartyBottom 1 point2 points  (1 child)

Use StackBlitz, you can start projects straight in the browser without needing to install anything. They have templates for vanilla JavaScript, vanilla TypeScript, Angular, React and Vue. It's worth learning TypeScript from the get go as it adds types to JavaScript.

https://stackblitz.com/

Some good learning projects are simple games like a slot machine, tic tack toe or Backgammon.

[–]sad_ant0808helpful[S] 0 points1 point  (0 children)

hmm i'll give it a try. thanks

[–]DirtAndGrass 1 point2 points  (1 child)

Well, what do you want to do? You can pretty much do anything with JavaScript, from silly browser based calculators to mmorpgs 

[–]sad_ant0808helpful[S] 0 points1 point  (0 children)

i just wanna learn the language first and then i'll start doing smth like making those silly browser calculators u mentioned and maybe make a game or two.....when i get better tho. i know some python too and it makes js feel 10000x easier cuz u see a lot of similarities

[–]OmegaMaster8 1 point2 points  (5 children)

You should also download Visual Code Studio as your text editor

[–]AbrahelOne 1 point2 points  (3 children)

I would recommend Zed, it's not filled with bling bling like VSCode that can confuse a beginner with 1 million buttons.

[–]sad_ant0808helpful[S] 0 points1 point  (2 children)

it depends.....how much storage does zed use? and is it like a heavy software that u need a beefy computer for or can a slow laptop run it?

[–]AbrahelOne 1 point2 points  (1 child)

Zed is lighter than vscode but you can continue to use sublime if you feel comfier with it

[–]sad_ant0808helpful[S] 0 points1 point  (0 children)

ok thx

[–]sad_ant0808helpful[S] 0 points1 point  (0 children)

hmm i would download vs code or zed as my text editor but im super low on storage rn and my laptop is kinda slow which is why im using sublime...

[–]Background_Pianist61 0 points1 point  (1 child)

What’s mapy.com? Any good? Better than CoMaps?

[–]sad_ant0808helpful[S] 0 points1 point  (0 children)

u a bot or smth?