Awesome discussion topic, cesbrandt.
I'm not quite sure what adaptation consideration is, so I'll talk about the coding style in this message. If I find time, I may come back to talk about how I throw a program together.
My code style is heavily influenced by other programming languages that I knew before learning JavaScript. Even though I know the scope of a variable is within the block and everything is hoisted to the top, I still tend to put the var statement when I first encounter something rather than at the top.
I use Eclipse (Windows) for development although I sometimes use a text editor PSPad (Windows) or Joe's Own Editor -- joe (Linux because it reminded me of Wordstar -- I don't like vi) or even the built-in script editor in Firefox. Tampermonkey has one, but I rarely develop in Chrome to start with. Of those, I use Eclipse to do the formatting. Configure it with my preferences, press Ctrl-F and let it do it's thing. The Firefox editor has a "Pretty Print" that comes out close, so I'll use it in a pinch. I've tried online code formatters, but wasn't impressed as much and wanted something built into the code editor.
I use code lint/hint features. Not always, but I use Perl Critic for Perl that tries to make my code conform to Perl Best Practices by Conway. I was glad to find JSHint for JavaScript. There is an Eclipse plugin for both of those and so Eclipse helps me find / fix bad code by putting a little marker and explanation next to each trouble spot. My early code doesn't reflect it, but after I found it, I make sure that all of my projects are clean of issues.
I indent using 2 spaces. When I first started developing with Eclipse, I was writing PHP Drupal modules and they had Drupal Coding Standards, which was based off the PEAR coding standards. So I tried to make my PHP code match their guidelines. Also, the width of a tab is not defined consistently. Most "dumb" browsers define it as 8 characters, but coding editors allow you to adjust that based on the file extension / programming language. I hated opening up a file that used tabs but didn't have a recognized extension and only being able to see a small portion of the code because it was pushed off the right with those 8 character tabs.
When I started learning JavaScript, I started with Google's JavaScript Style Guide. They also recommend 2 spaces and not tabs.
I set line length to 120 characters. Sometimes 128 because I really don't care, I just want it to be more than 80. If you set it to 80 and have long lines, then the formatter sometimes breaks them in undesirable places. When it breaks, then JSHint starts complaining about the line break being in the wrong spot.
I don't want the line to be too long because then you have to scroll too far to read it and you've lost the left side of the screen when you do that.
When posting code in the Community, I sometimes manually add extra line breaks to minimize the scrolling. When you get a comment to a comment to a comment and then start posting code, there's little space left. But normally I let the code formatter take care of it.
What's a comment? Ever hear of self-documenting code? If there is something really unusual about what I'm doing or if I want to make a note to myself about why I'm doing something a particular way (something that's not obvious) I may add a comment.
I do tend to use generic variables i, j, k for my indices in a for loop. That allows it to be reused without having to change all the variable names. I picked up the i, j, k from my days as a founding member of SAFAC (Students Against Fortran And Cobol). I never had either, but I helped others with both and i - n were implicitly declared to be integers in Fortran. Plus, in math, we use i, j, and k as the indices on summations, so it meshes well with my primary job.