JSMinds

Play With Boolean Data Type

// String datatype variable a and b let a = "Hello World"; let b = 'Hey Guyzz'; // Creating String Via Objects let c = new String("A String object has been created"); // printing variable console.log(a) console.log(b) console.log(c) // to find char by given index console.log("char at index 1 is : " + b.charAt(2)); console.log("char at index 1 is : " + c[4]); //to see the datatype of given variable console.log(typeof b);