{"size": 320, "ext": "js", "max_stars_repo_path": "demo/demo03.js", "max_stars_repo_name": "hongjingping/typeScriptDemo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "demo/demo03.js", "max_issues_repo_name": "hongjingping/typeScriptDemo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "demo/demo03.js", "max_forks_repo_name": "hongjingping/typeScriptDemo", "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": 18.8235294118, "max_line_length": 38, "alphanum_fraction": 0.58125}
"use strict";
// 函数申明法
function add(n1, n2) {
    return n1 + n2;
}
console.log('add运行结果:' + add(1, 2));
// 函数表达式法
var add2 = function (n1, n2) {
    return n1 + n2;
};
console.log('add2运行结果:' + add2(1, 2));
// 箭头函数(TS完全支持es6)
var add3 = function (n1, n2) {
    return n1 + n2;
};
console.log('add3运行结果:' + add3(1, 2));
