Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 19:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



brauche hilfe bei javascript

Discussion on brauche hilfe bei javascript within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 25
Received Thanks: 1
Question brauche hilfe bei javascript

könnt ihr mir helfen, folgendes script fertig zu schrieben?(ist leider auf english)
Code:
// This function should increment the start value by 1
// the number of times specified.
function increment(start, timesToIncrement) {
  // Add the appropriate code here, this time using a
  // for loop. This time, you must also write in the loop
  // body.
  var times
  for(  ) {
 
  }
  return start;
}
thx im voraus
Citron-Lighter is offline  
Old 12/31/2011, 12:48   #2
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
wenn du jetzt nocht sagst, was das script genau machen soll ...
NotEnoughForYou is offline  
Old 12/31/2011, 13:38   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 25
Received Thanks: 1
ich soll das script vervollständigen . alle angaben sind im code als kommentar drinnen!
mehr weiß ich leider auch nicht
Citron-Lighter is offline  
Old 12/31/2011, 23:18   #4


 
Whoknowsit's Avatar
 
elite*gold: 146
Join Date: May 2009
Posts: 3,764
Received Thanks: 6,974
Quote:
Originally Posted by Citron-Lighter View Post
könnt ihr mir helfen, folgendes script fertig zu schrieben?(ist leider auf english)
Code:
// This function should increment the start value by 1
// the number of times specified.
function increment(start, timesToIncrement) {
  // Add the appropriate code here, this time using a
  // for loop. This time, you must also write in the loop
  // body.
  var times
  for(  ) {
 
  }
  return start;
}
thx im voraus
Is das ein Test?!

Code:
function increment(start, timesToIncrement) {
    var times = 0;

    for (times; times < timesToIncrement; times += 1) {
        start += 1;
    }
    return start;
}
Whoknowsit is offline  
Thanks
1 User
Old 01/01/2012, 02:20   #5
 
elite*gold: 0
Join Date: Nov 2011
Posts: 25
Received Thanks: 1
wie test?
ich bin grade am JS lernen und das programm lässt mich nicht wieter, bis ich die aufgabe geschafft habe!
thx, das war die richtige lösung! ich glaube, ich habe immer das erste thx in der for schleife vergessen...
Citron-Lighter is offline  
Old 01/01/2012, 02:41   #6
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Quote:
Originally Posted by Citron-Lighter View Post
wie test?
ich bin grade am JS lernen und das programm lässt mich nicht wieter, bis ich die aufgabe geschafft habe!
thx, das war die richtige lösung! ich glaube, ich habe immer das erste thx in der for schleife vergessen...
Wenn du etwas lernen willst, dann mach es selber und schreib nicht ab. Bringt dir so garnichts.
MoepMeep is offline  
Old 01/01/2012, 09:38   #7
 
elite*gold: 0
Join Date: Nov 2011
Posts: 25
Received Thanks: 1
wenn ich aber 2 wochen dran sitze, dann hab ich auch keine lust mehr, js zu lernen!
Citron-Lighter is offline  
Old 01/06/2012, 18:29   #8
 
elite*gold: 0
Join Date: Oct 2008
Posts: 319
Received Thanks: 88
Quote:
Originally Posted by Whoknowsit View Post
Is das ein Test?!

Code:
function increment(start, timesToIncrement) {
    var times = 0;

    for (times; times < timesToIncrement; times += 1) {
        start += 1;
    }
    return start;
}
Code:
function increment(start, times) {
  for (i = 0; i < times; i++)
    start++;

  return start;
}
Warum so unschön wenns auch einfach geht?
Fratyr is offline  
Old 01/06/2012, 20:07   #9


 
Whoknowsit's Avatar
 
elite*gold: 146
Join Date: May 2009
Posts: 3,764
Received Thanks: 6,974
1. Weil ich nach Lint arbeite
2. Weil ich an den vordefinierten Namen nichts ändern wollte
Whoknowsit is offline  
Reply


Similar Threads Similar Threads
Javascript html hilfe
01/01/2012 - Web Development - 17 Replies
Hallo leute ich hab n großes problem und zwar will ich mit javascript programmieren lernen, ich hab dafür auch so ein kleines anleitungsheft, aber ich weiß nicht wo man das krigt, ob man des downloaden muss und falls nicht was muss ich ausführen wo die ganzen codes reinkommen? ich hab echt keine ahnung von programmieren also bitte hilfe.
Hilfe Javascript greasemonkey bot
11/07/2011 - Web Development - 4 Replies
HI, ich habe diese 3 header: http://*******.org/game.php?page=fleet1 POST /game.php?page=fleet1 HTTP/1.1 Host: *******.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Accept: text/html,application/xhtml+xml,application/xml;q= 0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Brauche Dringend Hilfe! Bin Metin spieler aber Brauche Hilfe
12/30/2009 - Metin2 Private Server - 0 Replies
Es gehört hier zwar nicht rein , aber ich weiß keine andere Lösung Ich habe seit einigen Tagen ein Problem... Microsoft Windows Search Protocol Host funktioniert nicht mehr Die Anwendung wird Aufgrund eines Problems nicht mehr richtig Ausgeführt. Ich weiß nicht was das ist und wie ich es loswerde.



All times are GMT +1. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.