Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* define data type in php*/
- <?php
- $name = 'Firoze';
- var_dump(gettype($name));
- ?>
- /* define data type in javascript*/
- /*
- null is object
- true or false boolean
- 1,2....etc like this is number
- anything in '' or "" that are string
- like this 555555555555555*'abc' is NaN but a number
- */
- var what_type = 555555555555555*'abc';
- console.log(what_type);
- console.log(typeof what_type);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement