<commit_before>function factor_enter () {
    console.log("Enter factorial");
    factor = prompt("Enter factorial");
    return factorial(factor);
}
    

function factorial (factor){
    if (isNaN(factor) === false){
        console.log("factor!!!!");
    } else {
        console.log("Invalid, please enter a number");
        factor_enter();
    }
}

factor_enter();


//what is a factor?<commit_msg>updated, used recursion instead of for statement for factorials<commit_after>console.log("enter a number to get the factorial");
num = prompt("factorial is: ");
FirstFactorial(num);

function FirstFactorial(num) {
    if(num === 0){
        return 1;
    } else {
        //the recursion....
        return num*FirstFactorial(num-1);
    }
}

{'fraction_non_alphanumeric': 0.1447721179624665, 'fraction_numerical': 0.004021447721179625, 'mean_word_length': 3.1043956043956045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '771282', 'n_tokens_mistral': 225, 'n_tokens_neox': 219, 'n_words': 57}