Hacker News new | ask | show | jobs
by notduncansmith 4401 days ago
To make many more examples of why Javascript is not a language for beginners.
1 comments

  var tens = ['10','10','10','10','10','10','10','10'].map(parseInt);
  var ten = tens[tens.length-1];
  var two = ten % 4;
  console.log(two + 2);