จะใช้แบบ await
หรือจะ then
ก็ได้
และจริงๆ ไม่ต้องใช้ document.getElementById
ก็ได้ ไปใช้ อย่างอื่น ที่ต้องการหา เช่น
•getElementById()
•getElementsByClassName()
•getElementsByName()
•getElementsByTagName()
จะใช้แบบ await
หรือจะ then
ก็ได้
และจริงๆ ไม่ต้องใช้ document.getElementById
ก็ได้ ไปใช้ อย่างอื่น ที่ต้องการหา เช่น