Skip to content

Instantly share code, notes, and snippets.

@moriiimo
Last active December 16, 2015 05:08
Show Gist options
  • Save moriiimo/5381719 to your computer and use it in GitHub Desktop.
Save moriiimo/5381719 to your computer and use it in GitHub Desktop.
100をfor, whileを使わないでconsole.logで出力する。: level5 - ワンライナーで書きなさい, level6 - +(プラス)演算子を使ってはいけません
$(function(){
new Array(100).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