JMRKER's Profile User Rating: -----

Reputation: 133 Stalwart
Active Posts:
868 (0.33 per day)
25-October 08
Profile Views:
Last Active:
User is offline Sep 19 2015 04:28 PM

Previous Fields

OS Preference:
Who Cares
Favorite Browser:
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:

Latest Visitors

Icon   JMRKER has not set their status

Posts I've Made

  1. In Topic: Trying to convert decimal to hex

    Posted 9 Aug 2015

    You need to get out more (too tense). It was not a critical comment.
    I was not being critical of your typing skills as mine are much worse. :surrender:

    Just for other beginners who may have tried your code and did no further troubleshooting.
    The code works fine in your link (if they bothered to go any further).
    Just added a bit of extra space between the characters to avoid the abrupt termination of the line.
  2. In Topic: Trying to convert decimal to hex

    Posted 6 Aug 2015

    View Postbaavgai, on 02 August 2015 - 03:57 PM, said:

    This looked kind of fun. Note, more functions more gooder:
    function updateProperties() {
      var getHex = function(id) { return toHexComponent(Number(document.getElementById(id).value)); };
      var r = getHex("red");
      var g = getHex("green");
      var b = getHex("blue");
      updateColor("#" + r + g + B)/>/>;

    Try here.

    Minor correction at line #22.
      updateColor( "#" + r + g + b );

    Appears to be related to forum's display.
  3. In Topic: Problem With My Script

    Posted 26 Jun 2015

    If you could have seen it, it was just the lines I would have done differently based upon your post.
  4. In Topic: Problem With My Script

    Posted 26 Jun 2015

    View Postandrewsw, on 26 June 2015 - 10:40 AM, said:

    @JMRKER Please do not post a full coded solution, this is against the accepted practice of this site.

    (When posting a full HTML page please also include a DOCTYPE declaration. We need to encourage this practice, and requirement.)

    Sorry, I guess I don't understand the purpose of the forum if not for educational purposes.
    Sort of defeats the purpose of users asking for help if submissions are just deleted.

    As I had indicated in the deleted code, I would not have coded that way but tried to at least
    give a working script from which to continue discussions using the OP's posted code (as was)
    and to allow other users to comment on alternative methods/solutions.
  5. In Topic: Help with JavaScript Function: Print out the next 20 leap years

    Posted 17 Jun 2015

    Using 'felgall's function, you can shorten it quit a bit.
    function isLeapYear( year ) { return ( (new Date( year, 1, 29 )).getDate() === 29); }
    function leapYearCalc(yr) {
      var counter = 20;
      while (counter > 0) {
        if (isLeapYear(yr)) {
          console.log(yr); document.writeln(yr+'<br>');
    var year = prompt("please input a year to find out the next 20 years");

    I thought you requested the next 20 leap years.


    QUESTION: Write a function that takes ANY year given by user, and prints out the NEXT 20 leap years.

    Your code listed the leap years found in the next 20 years.
    Slightly different results.

    Note, you should keep as many variables local to the function
    as possible (ie, counter and year) to avoid possible conflicts
    with other functions you might develop in the future as your
    scripts become more complicated.

    In your code the variable 'counter' is global and 'year' is both local and global.
    Will lead to many problems in longer and more function dependent scripts.

    Good luck with your studies.

My Information

Member Title:
D.I.C Addict
Age Unknown
Birthday Unknown
Programming Languages:
javascript, perl, java, forth, basic, fortran, assembly (several)

Contact Information

Website URL:
Website URL  http://


Showing 50 random friends of 4


JMRKER has no profile comments yet. Why not say hello?