Search this site
Embedded Files
Skip to main content
Skip to navigation
การเขียนโปรแกรมภาษาจาวาสคริป
Home
ไวยากรณ์
ตัวแปร
ตัวแปรชนิดObject
ตัวดำเนินการ
ตัวดำเนินการคณิตศาสตร์
ตัวดำเนินการเปรียบเทียบ
ตัวดำเนินการตรรกะ
ตัวดำเนินการ bitwise
ตัวดำเนินการกำหนดค่า
ตัวดำเนินการชนิดของตัวแปร
การตัดสินใจ
ตัดสินใจแบบ if
ตัดสินใจแบบif_else
ตัดสินใจ if ซ้อน
ตัดสินใจแบบ switch
การทำซ้ำ
for
Indefinite Loop
ES6 − ฟังก์ชัน Functions
Returning functions
Parameterized functions
Anonymous Function
The Function Constructor
Recursion and JavaScript Functions
Lambda Functions
Input_Output
แบบฝึกหัด
แบบฝึกหัดที่ 1
แบบฝึกหัดที่ 2
การเขียนโปรแกรมภาษาจาวาสคริป
ตัวดำเนินการชนิดของตัวแปร
ตัวดำเนินการชนิด Type Operators
typeof operand ส่งคืนสตริงที่ระบุชนิดของ ตัวถูกดำเนินการ ตัวถูกดำเนินการสามารถเป็น object, property, variable และ literal ชนิดทั่วไปได้แก่ number, string, boolean, object, function และ null
ตัวอย่าง
var num=12
console.log(typeof num); //output: number
ผลลัพธ์
number
Report abuse
Report abuse