📜  如何在打字稿代码示例中获取余数

📅  最后修改于: 2022-03-11 14:48:36.178000             🧑  作者: Mango

代码示例1
var y = 11;
var x = 4;
var remainder = (y % x);
console.log(remainder);