Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Using the chrome dev tool

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #209542
    Jtwa11
    Participant

    Is there a way to use the chrome dev tools to learn from other peoples javascript? I know I use it all the time for CSS and HTML, but I’m not sure how to use it for javascript?

    #209544
    Alen
    Participant

    @jtwa11, I’m not sure is Chrome Dev Tools is the place to learn JavaScript, but it allows you to inspect other developers code. The browser is the environment JavaScript runs in, so technically if you open up Chrome Dev Tools and click on console, you can type JavaScript and get a response.

    learn from other peoples javascript

    This is becoming harder and harder to do. When I first started, we didn’t have minification, now the code is abstracted too much making it hard to read and make sense.

    If you want to learn JavaScript check out

    #209547
    Senff
    Participant

    You can use the inspector to view a site’s Javascript, and also to edit it “live” to see what impact it would have, like you can edit HTML and CSS on the fly.

    Basically, you can add breakpoints to scripts, then when you reload, the script execution would “pause” at each breakpoint. That’s when you can make changes to Javascript that hasn’t been executed yet, save, and continue by “un-pausing” and you will see what your changes would do.

    Check out:
    https://developer.chrome.com/devtools/docs/javascript-debugging

    #209596
    Jtwa11
    Participant

    @Senff thank you for the link

    Here’s a good link for learning javascript from other developers
    https://www.youtube.com/watch?v=2zmUSoVMyRU

    #209597
    Senff
    Participant

    A lot of it is guesswork, I think. Unless you put breakpoints everywhere to see which files are being accessed at what time, it can be quite a struggle to figure out which .JS file is meant for whichever functionality.

    It depends, though. If you see a slider, you can expect the CSS styles and classes, and then when you see something like class="superSlider", and a .JS file called superSlider.js, you’d know where to look.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Other’ is closed to new topics and replies.