JSFiddle - React, Tailwind, and code Playground

by spechackers

JavaScript

var name = "Vinoth";
var firstChar = name.charAt(0);
console.log("What you see" , firstChar);

//This is what happens behind the scenes:
// what the JavaScript engine does

var name = "Vinoth";
var temp = new String(name);
var firstChar = temp.charAt(0);
temp = null;
console.log("Behind the Scenes" , firstChar);