Jump to content

nolan_1184

Members
  • Posts

    5
  • Joined

  • Last visited

nolan_1184's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi niche, Thanks for replying. Yes, I saw the tip, so does that mean if i say 2=0 instead of 1=0. will it work?
  2. my question: refer## http://w3schools.com/sql/sql_select_into.asp SELECT *INTO newtableFROM table1WHERE 1=0; in this syntax, what does 1=0 mean? pls explain in detail.
  3. Dear dsonesuk Thankyou very much for the answer. You have cleared my doubts...I m just new to javascript and was stuck in this. Thankyou very much once again. I appreciate your help. :)
  4. Hi, please refer to this script for my question:-----------------------------------------------------------------------------------------------------------------------------<body><p>Click the button to loop through a block of code five times.</p><button onclick="myFunction()">Try it</button><p id="demo"></p><script>function myFunction(){var x="",i;for (i=0;i<5;i++) { x=x + "The number is " + i + "<br>"; }document.getElementById("demo").innerHTML=x;}</script></body>---------------------------------------------------------------------------------------------------------------------------it is a for loop question....1) since x="", then what is value of x in the second loop , third loop and so on. 2) even if x is given a numeric value, it is displayed in the first loop and that's it...not in the other loops...??? y? 3) if x="sss"...just to check the behavior of x....i got the o/p as sssThe number is 0The number is 1The number is 2The number is 3.....so on y "sss" is not addded to the remaining loop pls help...even loop by loop explanation of for loop with help me a lot in understanding it better. thanks
  5. my question related to this script: <body> <p>Click the button to loop through a block of code five times.</p><button onclick="myFunction()">Try it</button><p id="demo"></p> <script>function myFunction(){var x="",i;for (i=0;i<5;i++) { x=x + "The number is " + i + "<br>"; }document.getElementById("demo").innerHTML=x;}</script> </body>----------------------------------------------------------------------------- i need help in understanding the "for" loop....my questions are as follows: 1) x=x+"The number is"+i -----over here assuming that the value of x is "" (empty string),,,vn the loop starts does the value of x changes in very loop.....i was stuck in this statement...i even tried declaring x="ss" just to check the behavior of x...the o/p was :ssThe number is 0The number is 1The number is 2The number is 3The number is 4 ....well more question rises from here....like why javascript runs the value of x only in d first loop and not in second, third..so on. ..anyone willing to explain the behavior step by step for every loop steps will be highly appreciated...thanks.
×
×
  • Create New...