Console clear()
ဥပမာ
ကွန်ဆိုးလ်ရှိ မက်ဆေ့ဂျ်အားလုံးကို ရှင်းလင်းပါ-
console.clear();
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
clear()
နည်းလမ်းသည် console ကိုရှင်းလင်းသည် ။
နည်းလမ်းကို console တွင် clear()
"Console was cleared" ဟုလည်းရေးပါ။
အထားအသို
console.clear()
Browser ပံ့ပိုးမှု
console.clear()
ဘရောက်ဆာအားလုံးတွင် ထောက်ခံသည်-
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |