Code:
num = 4.4;
function ceil(num) {
x = num;
x = x - x % 1;
x = x + 1;
return x;
}
document.write(ceil(num));
Result:
5
Coding & Robotics for Kids | 10xCoderKids is your partner in the journey to become 10x Coder !!!
What is coding? In coding we build a program to do a specific task for us. Code: A code is a set of computer instructions and when you will ...
No comments:
Post a Comment