Skip to content

Instantly share code, notes, and snippets.

@moriiimo
Last active December 16, 2015 05:08
Show Gist options
  • Save moriiimo/5381787 to your computer and use it in GitHub Desktop.
Save moriiimo/5381787 to your computer and use it in GitHub Desktop.
// 100をfor, whileを使わないでconsole.logで出力する。 : level7 - 数値を使ってはいけません
$(function(){
new Array(Number([~~true, ~~false, ~~false].join(""))).toString().split(",").filter(function(val, index){ console.log(-~index); });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment