Quick actions

cmd+k|ctrl+k

Navigation

Languages

Kuis Coding : Function

Snippet info

Language

JavaScript

Visibility

public

Author

ryandfbasketball12

Created

2022-07-24T06:53:48.101469Z

Updated

2022-07-24T06:53:48.101469Z

minimal = (a, b) => {
    if(a < b) {
        return a;
    } else if(b < a) {
        return b;
    } else {
        return a;
    }
}
console.log(minimal(5,5))

power = (a, b) => {
    return a**b;
}
console.log(power(7, 3))
INFO