r/learnjavascript • • 6d 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

6 Upvotes

13 comments sorted by

View all comments

1

u/justanaccountimade1 5d ago

See structure here:

https://www.reddit.com/r/learnjavascript/s/vfr8TnMzBA

You put that in a textfile that you call something.html and open it in the browser. The browser then shows the result of the console.log in the console (F12 in Chrome, you'll have to look up how to open it in Safari).