Blogger Information
Blog 12
fans 0
comment 2
visits 6329
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
js变量函数初学实验
白鸽
Original
337 people have browsed it

let 声明变量

const 声明常量

function 声明函数

console.log()控制台输出

箭头函数

  1. let abc = (a, b) => {
  2. return 'c = ' + (a + b);
  3. }
  1. let myWebsiteName="我的网站";
  2. let myWebsiteDomain="php.cn";
  3. const WEB_URL="https://www.php.cn/";
  4. function webinfo(webname,domain,url){
  5. return webname+' '+domain+' '+url;
  6. }
  7. //console.log(webinfo(myWebsiteName,myWebsiteDomain,WEB_URL));
  8. let reweb=(function (domain,name){
  9. return '个人主页:'+(name+domain)
  10. })(myWebsiteName,myWebsiteDomain);
  11. console.log(reweb);

js

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post