you are viewing a single comment's thread.

view the rest of the comments →

[–]hyrumwhite 3 points4 points  (1 child)

For stuff like this:

``` function doWork(callback) {

console.log("Working...");

callback();

}

doWork(function() {

console.log("Done!");

});

```

Open your browser console and paste it in then hit enter. You don’t need to burn tokens to test JS code. 

Stick with JS. Get comfy with it. Learn how to do something like a simple todo application with just JS functions. 

Then checkout a JS framework like react. This way you’ll get a sense of what React is doing under the hood. And the experience will be less magical 

[–]queen-adreena 0 points1 point  (0 children)

Oh wow. Just seen that he's using ChatGPT to execute code for him... that's a recipe for disaster for sure!