Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
非常に単純なJavaScriptの質問.
私には2つの価値がvalue1 = 20あり、value2 = 30
value1 = 20
value2 = 30
bigger_numberより大きな数値の値を変数に割り当てるにはどうすればよいですか?
bigger_number
var bigger_number = Math.max(value1, value2);
少しグーグル検索するとMath.maxへの参照が得られます
例えば:
Math.max([value1[,value2[, ...]]])