Not really a TIL, but some JavaScript I wrote to check that what I was understanding really was the case. Guess the output:

(function() {
	var i = 42;

var f = function() {
	i = 17;
	if(false) {
		var i = 'fnord';
	}
};

f();
console.log(i);
})();

    TIL you can target keywords and specific accounts using twitter ads, and that you can buy traffic for under a nickel a click.

      Today I learned

      input.addEventListener('input', grab_data);

      and

      document.addEventListener('DOMContentLoaded', grab_data);

      aren't really the same thing, I'm sure there was a thread about saying doh somewhere

        TIL the word "parodical" — if you're looking for an adjective to say that something is like a parody of something, you've just found it.

        The word was used in this rant about UI design.

          cluelessPHP

          cluelessPHP I saw the link in your profile preview and clicked

          I should have known that was it.

          TIL I learned that google offers no API for its search -- it only offers it for Custom Search.

          23 days later

          Today I learned despite what the TV show Outlander will tell you, peanut butter jelly sandwiches are not ok not ok at all

          cluelessPHP
          It depends a lot on the peanut butter, jelly, and bread used (plus I prefer some butter/margarine as well). 😉

          NogDog I don't think it's for me, but in its defense it's not as bad as some of the abominations that have come out of Scotland reccently

            TIL you have to remove more than 20 screws from an old iMac to replace the abominably slow 5400RPM 128GB hard drive to make it remotely usable.

              10 days later

              TIL I'm currently that sick I uniroically stubmled across the solution to my current problem via a question I asked on here in 2017

                6 days later

                TIL that when you use the analogWrite() function to try and set an analog voltage level on an arduino pin, it's probably going to use PWM, which is not really an analog voltage AT ALL.