Jump to content

shower

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by shower

  1. I don't understand how you can learn JS with Try It Yourself

    I finish the HTML and can understand better because I can go to public sites and view source code and see how it's planted in and used for each element.

    I can't do that with JS since it's hidden in server. 

    For example

    let x, y, z;  // Statement 1
    x = 5;        // Statement 2
    y = 6;        // Statement 3
    z = x + y;    // Statement 4

    and than Try It Yourself would produced this output

    A JavaScript program is a list of statements to be executed by a computer.

    The value of z is 11

    I understand how it got the calculation but have no clue how I would use this in a real scripted website. The whole JS Tutorial is small pieces like this and I am not sure if I am doing this right by just reading and trying it with editor with no context. I assume these statements etc will turn into blinking rotating images, games and interactivity somewhere later. Does anyone have any suggestions how I could learn from Try it Yourself ? Where can I see full JS codes used in website online so I can compare with the Try It Yourself code I practice on this site ? thank you in advance

×
×
  • Create New...