typeof in java code example
Example 1: java typeof
Object obj = null;
obj = new ArrayList<String>();
System.out.println(obj.getClass());
obj = "dummy";
System.out.println(obj.getClass());
obj = 4;
System.out.println(obj.getClass());
Example 2: typeof in js
var someValue = 'this is string';
console.log(typeof(someValue)); // this will return string
Example 3: typeof in js
typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword