File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
1-js/08-prototypes/03-native-prototypes/1-defer-to-prototype Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ function f() {
99 alert (" Hello!" );
1010}
1111
12- f .defer (1000 ); // shows "Hello!" after 1 sec
12+ f .defer (1000 ); // menampilkan "Hello!" setelah 1 detik
1313```
Original file line number Diff line number Diff line change 1- importance : 5
1+ nilai : 5
22
33---
44
5- # Add method "f.defer(ms)" to functions
5+ # Menambahkan metode "f.defer(ms)" ke fungsi
66
7- Add to the prototype of all functions the method ` defer(ms) ` , that runs the function after ` ms ` milliseconds .
7+ Tambahkan kepada * prototype* dari semua fungsi metode ` defer(ms) ` , yang menjalankan fungsinya setelah milidetik ` ms ` .
88
9- After you do it, such code should work :
9+ Setelah kamu melakukannya, kodenya harus berjalan :
1010
1111``` js
1212function f () {
1313 alert (" Hello!" );
1414}
1515
16- f .defer (1000 ); // shows "Hello!" after 1 second
16+ f .defer (1000 ); // menampilkan "Hello!" setelah 1 detik
1717```
You can’t perform that action at this time.
0 commit comments