max

種類メソッド
書式 Math.max(値1,値2)
解説
2つの値を比較し大きい値を返します。
サンプルコード
n = eval(prompt("Input Number",10));
alert(Math.max(n,5));
実際のスクリプトをダウンロード