Avinashd Posted on Dec 26, 2024 • Edited on Dec 26, 2024 Js in bits - 5.8(typeof) #javascript #tutorial #learning #interview Learning js should be fun. It is fun if it's easy. I tried my best in writing this, to understand it the easy way. datatypes typeof It is an operator to check the type of a value. Some other types with typeof 1 last thing: Leave y'r thoughts.... Top comments (2) Subscribe Submit Preview Dismiss Collapse Expand Alex Mustiere Alex Mustiere Alex Mustiere Follow Joined Dec 16, 2020 • Dec 26 '24 Dropdown menu Copy link Hide As you said, typeof is an operator, so you don't need the parenthesis. Collapse Expand Avinashd Avinashd Avinashd Follow Joined Jun 6, 2018 • Dec 26 '24 Dropdown menu Copy link Hide We may, if we are dealing with math and want to know the type of the result after some calculations, as in above (2*3). More of it in future posts. Code of Conduct • Report abuse
Top comments (2)
As you said,
typeofis an operator, so you don't need the parenthesis.We may, if we are dealing with math and want to know the type of the result after some calculations, as in above (2*3). More of it in future posts.