JSFiddle - React, Tailwind, and code Playground

by rajaadil

JavaScript

//On line 2, declare a variable myName and give it your name.
var myName = "Jeanne";
//On line 4, use console.log to print out the myName variable.
console.log ("Jeanne");
//On line 7, change the value of myName to be just the first 2 letters of your name.
substr = myName.substring(0, 2);

alert(substr);
//On line 9, use console.log to print out the myName variable;
console.log(substr);