相关疑难解决方法(0)

如何在Javascript中调用函数

我是编程新手,并且可以使用Codeademy来帮助解决这一问题,所以请原谅我这个问题是否很明显。我主要希望能够调用一个函数。我已经复制并粘贴了下面的代码学院资料,我主要想知道我必须做些什么才能“调用问候函数”。如果您能确切解释做什么,为什么会很棒。

Below is the greeting function!
// See line 7
// We can join strings together using the plus sign (+)
// See the hint for more details about how this works.

var greeting = function (name) {
console.log("Great to see you," + " " + name);
};

// On line 11, call the greeting function!`
Run Code Online (Sandbox Code Playgroud)

javascript variables function

-3
推荐指数
1
解决办法
3万
查看次数

标签 统计

function ×1

javascript ×1

variables ×1