You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/translations/zh/2-js-basics/2-functions-methods/assignment.md

25 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!--
CO_OP_TRANSLATOR_METADATA:
{
"original_hash": "8973f96157680a13e9446e4bb540ee57",
"translation_date": "2025-08-23T22:42:45+00:00",
"source_file": "2-js-basics/2-functions-methods/assignment.md",
"language_code": "zh"
}
-->
# 玩转函数
## 说明
创建不同的函数,包括返回值的函数和不返回值的函数。
试着创建一个包含普通参数和带默认值参数的混合函数。
## 评分标准
| 标准 | 优秀 | 合格 | 需改进 |
| -------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ----------------- |
| | 提供了两个或更多性能良好的函数,且参数多样化 | 提供了一个可运行的函数,参数较少 | 解决方案存在问题 |
**免责声明**
本文档使用AI翻译服务 [Co-op Translator](https://github.com/Azure/co-op-translator) 进行翻译。尽管我们努力确保翻译的准确性,但请注意,自动翻译可能包含错误或不准确之处。原始语言的文档应被视为权威来源。对于重要信息,建议使用专业人工翻译。我们不对因使用此翻译而产生的任何误解或误读承担责任。