let 声明变量
const 声明常量
function 声明函数
console.log()控制台输出
箭头函数
let abc = (a, b) => {
return 'c = ' + (a + b);
}
let myWebsiteName="我的网站";
let myWebsiteDomain="php.cn";
const WEB_URL="https://www.php.cn/";
function webinfo(webname,domain,url){
return webname+' '+domain+' '+url;
}
//console.log(webinfo(myWebsiteName,myWebsiteDomain,WEB_URL));
let reweb=(function (domain,name){
return '个人主页:'+(name+domain)
})(myWebsiteName,myWebsiteDomain);
console.log(reweb);