Function menggunakan object

Run Settings
LanguageJavascript
Language Version
Run Command
function kuadrat(angka){ angka.key *= angka.key; } var x = {key: 5}; console.log("sebelum di kuadratkan " + x['key']); kuadrat(x); console.log("sesudah di kuadratkan " + x['key']);
Editor Settings
Theme
Key bindings
Full width
Lines