dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Dudeguy21

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    341

    I changed 'i' to 'j' in the function, and it...

    I changed 'i' to 'j' in the function, and it worked perfectly. Thank you!
  2. Replies
    2
    Views
    341

    Loop behaving oddly

    Hello! I am trying to make a script to display all of the prime numbers up to a certain point. This is the loop I have to display all of the prime numbers:



    for (i=2; i<=100; i++){
    if...
  3. Replies
    12
    Views
    2,933

    Instead of having a user input the current year,...

    Instead of having a user input the current year, it can be returned automatically. The easiest way to do this would be


    var year = (new Date()).getFullYear();

    You can get a value for the...
  4. Replies
    4
    Views
    3,062

    Impressive. Although i'd spend some time...

    Impressive. Although i'd spend some time optimizing, as it runs a tad choppy on my machine (although it isn't very fast).
  5. Replies
    10
    Views
    3,939

    Thanks for pointing that out! That's why I...

    Thanks for pointing that out! That's why I rewrote it, and ditched the odd "answer1, answer2 etc." system.
  6. Replies
    10
    Views
    3,939

    I just updated the script to output the right...

    I just updated the script to output the right values. The calculating part is also no longer confusing as hell.
    http://jsfiddle.net/Dudeguy21/9jappmnd/
  7. Replies
    10
    Views
    3,939

    Also, I recently realized that this script does...

    Also, I recently realized that this script does not give a correct answer. Just throwing that out there (almost two year later)
  8. Replies
    10
    Views
    3,939

    Thank you! That was very helpful, and a big...

    Thank you! That was very helpful, and a big improvement. Sorry it took so long to reply. Thanks for your help everyone!
  9. Replies
    10
    Views
    3,939

    Thanks so much! I'll try to look more closely at...

    Thanks so much! I'll try to look more closely at my code in the future.
  10. Replies
    10
    Views
    3,939

    Thanks for the help!!! But I seem to have...

    Thanks for the help!!! But I seem to have encountered a similar problem. Again, the prompts won't even show up. I don't think I made the same mistake... But again, I am a noob at this. Here is the...
  11. Replies
    10
    Views
    3,939

    Javascript math with variables

    I have just started with java script, but already, I have ran into some noob related issues. I am trying to make a simple program to solve for X in a quadratic equation. I have three prompts which...
Results 1 to 11 of 11
HTML5 Development Center



Recent Articles