第 4 步:让我们调用该函数,以便在每次对其进行更改时看到它运行。

  • 在代码底部删除带有未缩进Function Call with Parameter
  • 将函数名称从my_function()更改为pig_latin()
  • 更改变量参数my_var对字符串"Hello"的函数调用。

我们现在调用了pig_latin()函数并将字符串"Hello"传递给函数!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)