【文件属性】:
文件名称:Week3_Monday
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-06 00:14:33
JavaScript
9月28日,星期一的大纲
回顾周三的练习
职能
定义功能
var greeting = function ( ) {
console . log ( "Hello World" ) ;
} ;
greeting ( ) ;
用参数定义函数
var greeting = function ( firstName ) {
// anything inside of here will execute when the function is called
console . log ( "Good morning " + firstName ) ;
} ;
var name = "Otis" ;
var name2 = "Bodhi" ;
greeting ( name ) ;
greeting ( name2 ) ;
用两个参数定义一个函数
var greeting = func
【文件预览】:
Week3_Monday-master
----index.html(190B)
----main.js(8KB)
----README.md(3KB)