Jump to content

JKowalski

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About JKowalski

  • Rank
    Newbie
  1. Ah, now I understand. Thank you very much!
  2. Hello, what is the code to load the content of a file from my PC which contains JS code when I use the "try it" screen here, running on chrome, windows10? <script scr="?????/javascript"> Thank you.
  3. Hello, to my experience the following does not work (tryit-editor w3School), but it does with a "while" loop instead. Are "for" loops not allowed within classes? <p id="demo">result</p> class Test{ counter(){ var result=0; for(i=0;i<10;i++){ result++; } return result; } counter2(){ var result=0; while(result<10){ result++; } return result; } } var obj=new Test(); document.getElementById("demo").innerHTML=obj.counter(); //document.getElementById("demo").innerHTML=ob
×
×
  • Create New...