文件名称:js_functions:JS函数作业
文件大小:13KB
文件格式:ZIP
更新时间:2024-08-01 09:13:28
JavaScript
#JavaScript 函数 使用上一个练习中的 google 购物数据(也包含在此存储库中)创建一些有用的函数来回答以下问题。 提示:对于其中的一些,您可以重复使用您在上一个练习中创建的一些代码。 ##例子 下面是一些基本功能的示例。 此示例也作为 examples.js 包含在存储库中,因此您可以执行它。 //this function takes 2 numbers //adds them together and returns the sum var add = function(num1, num2){ return num1 + num2; }; //this function takes 2 numbers //subtracts them and returns the difference var subtract = function(num1,num2){
【文件预览】:
js_functions-master
----google_shopping_func.js(421B)
----products.json(45KB)
----examples.js(711B)
----README.md(2KB)