We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/yytypescript/book/edit/master/docs/reference/functions/callback-functions.md
このページの部分での小さなミスをを見つけたので報告させていただきます。
function greetNewUser(func: (name: string) => string) { console.log(func("ご新規さん")); } function hello(name: string) { return `こんにちは!${name}さん!!`; } function goodMorning(name: string) { return `おはようございます!${name}さん!!`; } // こんにちは!ご新規さん!! greetNewUser(hello); // おはようございます!ご新規さん!! greetNewUser(goodMorning);
このコードなのですが出力は「こんにちは!ご新規さんさん!!」と「おはようございます!ご新規さんさん!!」になるのではないでしょうか? console.log(func("ご新規さん"));の部分を console.log(func("ご新規"));に変更するか、 return `こんにちは!${name}さん!!`;の部分をreturn `こんにちは!${name}!!`; return `おはようございます!${name}さん!!`;の部分をreturn `おはようございます!${name}!!`;にするのが適切ではないかと思います。
console.log(func("ご新規さん"));
console.log(func("ご新規"));
return `こんにちは!${name}さん!!`;
return `こんにちは!${name}!!`;
return `おはようございます!${name}さん!!`;
return `おはようございます!${name}!!`;
The text was updated successfully, but these errors were encountered:
ご報告ありがとうございます!
Sorry, something went wrong.
No branches or pull requests
https://github.com/yytypescript/book/edit/master/docs/reference/functions/callback-functions.md
このページの部分での小さなミスをを見つけたので報告させていただきます。
このコードなのですが出力は「こんにちは!ご新規さんさん!!」と「おはようございます!ご新規さんさん!!」になるのではないでしょうか?
console.log(func("ご新規さん"));
の部分をconsole.log(func("ご新規"));
に変更するか、return `こんにちは!${name}さん!!`;
の部分をreturn `こんにちは!${name}!!`;
return `おはようございます!${name}さん!!`;
の部分をreturn `おはようございます!${name}!!`;
にするのが適切ではないかと思います。The text was updated successfully, but these errors were encountered: