JavaScript-Developer-I日本語 無料問題集「Salesforce Certified JavaScript Developer I Exam (JavaScript-Developer-I日本語版)」
Universal Containersでは、すべてのチームがJavaScriptオブジェクトをコピーする独自の方法を持っています。The
コード
スニペットは、1つのチームからの実装を示しています。
Function Person() {
this.firstName = "John";
this.lastName = 'Doe';
This.name =() => (
console.log('Hello $(this.firstName) $(this.firstName)');
)}
Const john = new Person ();
Const dan = JSON.parse(JSON.stringify(john));
dan.firstName ='Dan';
dan.name();
コード実行の出力は何ですか?
コード
スニペットは、1つのチームからの実装を示しています。
Function Person() {
this.firstName = "John";
this.lastName = 'Doe';
This.name =() => (
console.log('Hello $(this.firstName) $(this.firstName)');
)}
Const john = new Person ();
Const dan = JSON.parse(JSON.stringify(john));
dan.firstName ='Dan';
dan.name();
コード実行の出力は何ですか?
正解:B
解答を投票する