NIELIT O Level Exam

Which operator is used to get the data type of a variable in JavaScript?

Which operator is used to get the data type of a variable in JavaScript?

JavaScrip में एक वैरिएअब का डेटाटाइप प्राप्त करने के लिए किस ऑपरेटर का उपयोग किया जाता है

A. instanceof

B. gettype

C. typeof

D. none of the above उपरोक्त में से कोई नहीं




Correct Answer is :

C. typeof



Explanation
<p><span style="font-size: 14px;">In JavaScript, the typeof operator is used to determine the data type of a variable.</span></p>
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad