Skip to main content

Ivan Teoh

Something personal yet public

166-homework1.js

(Source)

1
2
3
4
5
function absolute(number) {
    if (number < 0)
        return -number;
    return number;
}