r/learnjavascript • • 22h ago

Some help setting up to learn JavaScript

Hi! I have been retired for quite some time. However, back in the day I did some programming in BASIC, Natural and ADABAS (like dBase III on an IBM mainframe) and did several years of website development including PHP but no JavaScript after I retired.

Now I'm just doing this project to keep my brain active.

I am using my Mac mini M4, Safari and BBEdit.

I presume I create HTML "shell" documents that include the JavaScript code I want to try and then "preview" that document in Safari from within BBEdit. I'm trying to use BBEdit as an IDE.

If that sounds crazy or there are better ways of doing things then please let me know.

Thanks in advance,

Peter

4 Upvotes

13 comments sorted by

View all comments

1

u/azhder 21h ago edited 21h ago

You can also learn JavaScript without a borwer, if you insall Node.js and run the scripts with it. It will work like a server language, like PHP did.

For editors, many use VSCode. I don't. I have been using Webstorm ever since it was PHPStorm, so I had no need to pick up a free tool for it.

As you can see, the first thing you expect about JS it may turn out not to be what you expected: you can use it inside a browser making a "shell" HTML file, but you aren't required. This will be a theme with JavaScript - some things you expect it to do one way, it may end up doing a third way.