// Lecture: Functions - Part 1

/*
function funName() {
    
    console.log('Hello World!');

}

funName();

function passExam(name, score) {

    var passUni = 71;

    var passColl = 51;

    if(score >= passUni) {

        console.log(name + ' has enrolled in University with ' + score + ' points');

    } else if(score >= passColl) {

        console.log(name + ' has enrolled in College with ' + score + ' points');

    } else {

        console.log(name + ' has failed');

    }

}

function calcScore(quizScore, assayScore) {

    var score = quizScore + assayScore;

    return score;

}

passExam('John', calcScore(40, 30));
passExam('Mary', 65);
passExam('Bob', 45);
*/




































