【文件属性】:
文件名称:javascript_practices:回到根源
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-14 10:27:26
JavaScript
JAFASCRIPT基础知识
创建功能
简单的javascript函数加数字
function add(a,b){
var total = a + b;
console.log(total) // prints to console
[removed](total) // prints on hmtl page
}
add();
数组[]
movies = ['BoogyMan', 'Avengers', 'Last Man Standing']
array.pop => Removes the last element of the array
array.push => The push() method adds a new element to an array (at the end):
toString => Converts element
【文件预览】:
javascript_practices-learning_js
----main.html(320B)
----package-lock.json(166KB)
----main.js(1KB)
----.gitignore(7B)
----README.md(1KB)
----.vscode()
--------settings.json(38B)