// 1️⃣ Copy by Value (值複製) // 適用於原始型別 (Primitive Types):Number, String, Boolean, Null, Undefined, Symbol, BigInt let a = 10; let b = a; // 這裡是值複製,b 獲得 a 的副本 b = 20; // 改變 b 不會影響 a console.log(a); // 10 console.log(b); // 20 // 2️⃣ Copy by Reference...
Markdown supported · ⌘↵ to post
No responses yet.