SOURCE
JavaScript
Result
function fn1(){ var date = new Date(); var y = date.getFullYear(); return y; } console.log(fn1());
console 命令行工具
X
clear
>
console