JavaScript က Single thread တခုတည်းကိုသုံးတယ် အဲ့တာကို ဘယ်လိုလုပ်ပြီးတော့ event handler တွေကို အလုပ်လုပ်သွားတာလဲပေါ့။ တကယ်တမ်းကြတော့ အောက်ကပုံမှာပြထားသလို JavaScript မှာ Stack ရှိတယ်။ သူကရှင်းတယ် JS code တွေကို run တော့မယ်ဆိုရင် method တခုချင်းဆီကို သူ.ဆီပေါ်တင်ပြီးတော့ run တယ်။ ဥပမာ function one() { two(); } function two() { } one(); ခုနက code ကို run ဖို.ဆို one ကို အရင်ဆုံး JS call stack ပေါ်တင်မယ် ပြီးတော့ သူ.ထဲက code တွေကို … Continue reading JS
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed