let s = '3'; // 数字を含む文字列 for(; s.length<10; s = ' ' + s); // 10桁になるまで前に空白を埋める console.log(s); // 3 (空白9個+「3」) for(let x=0.2; x<3.0; x += 0.2) // 整数以外の増分 console.log(x); /* 実行結果 0.2 0.4 0.6000000000000001 0.8 1 1.2 1.4 1.5999999999999999 1.7999999999999998 1.9999999999999998 2.1999999999999997 2.4 2.6 2.8000000000000003 */