{"size": 900, "ext": "js", "max_stars_repo_path": "javascript-test/function-basics.js", "max_stars_repo_name": "Flo820/flo820.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "javascript-test/function-basics.js", "max_issues_repo_name": "Flo820/flo820.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "javascript-test/function-basics.js", "max_forks_repo_name": "Flo820/flo820.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.7142857143, "max_line_length": 92, "alphanum_fraction": 0.7411111111}
window.onload = () => {
    // All code goes in here.
    const simpleFunctionDisplay = document.getElementById('simpleFunctionDisplay');
    const functionCallsAction = document.getElementById('functionCallsAction');
    const functionReturnDisplay = document.getElementById('functionReturnDisplay');

    functionCallsAction.onclick = simple;
    
    function simpleFunction() {
    console.log("functions should consist of statements designed to perform a single task");
    simpleFunctionDisplay.textContent = "simple";
 }

function functionParameter(value) {
console.log(value);
}

function functionReturn(addResult) {
    return "The add function returned: " + addResult;
}

function add(a,b){
    return a + b;
}

simpleFunction();

functionParameter("Your function takes parameters");

const addResult = add(2, 3);

const returnValue = functionReturn(addResult);
console.log(returnValue);

}