Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Kaun Gayn

    JavaScript pls help me in coding

    is this working ? function function1() { var number = 1; function function3() { if (number = 1) { document.getelementbyid("num").innerhtml = 11; } if (number = 2) { document.getelementbyid("num").innerhtml = 22; } } } function function2() { var number = 2; function function3() { if (number =...
  2. Kaun Gayn

    JavaScript pls help me in coding

    i understood the global and local variables. you know what i want to do. can you give me alternative of this coding
  3. Kaun Gayn

    JavaScript pls help me in coding

    i used double equal sign but it showing number is not defined. can i do if (function1 == true)
  4. Kaun Gayn

    JavaScript pls help me in coding

    function function1() { var number = 1; } function function2() { var number = 2; } function function3() { if (number = 1) { document.getelementbyid("num").innerhtml = 11; } if (number = 2) { document.getelementbyid("num").innerhtml = 22; } }
  5. Kaun Gayn

    JavaScript pls help me in coding

    var number = 10 function myFunction1() { var number = number - 9 } function myFunction2() { var number = number + 2 } if (true) { document.getElementById("num").innerHTML = number what is wrong here ? i used button function i tapped the button but that element is showing 10 why var...
  6. Kaun Gayn

    HTML pls help me in coding

    what's wrong in this coding ? <!DOCTYPE html > <html> <body> <h1 id= word> hello <h1> <button onClick = "myFunction()"> click here <button> <script> var variable1 = Hi world function myFunction() { if (true) { document.getElmentById("word").innerHTML = variable1; } </script> </body> </html>
Back
Top Bottom