user
You need to complete the following task:

Generate a valid JavaScript code to check if a given input is a positive number


assistant
function isPositive(num) {
    if (typeof num == 'number' && num > 0) {
        return true;
    } else {
        return false;
    }
}