Strings In Javascript

 const name = "Deba"

const repoCount = 50

//console.log(name + repoCount);

console.log(`My name is ${name} and repoCount is ${repoCount}`);

const game = new String('Debadatta')

//console.log(game);

//console.log(typeof game);

//console.log(game.length);
//Methods are there to get inside datas

//console.log(game.charAt(5));

//console.log(game.indexOf('a'));

const newgame = game.substring(0,5)

console.log(newgame);

const url = "https://debadatta.com/debadatta%20parida"

console.log(url.replace('%20', '_'));

console.log(game.split('a'));

Comments

Popular posts from this blog

AMAZON HOME PAGE CLONE PROJECT

Array in Javascript

Array in function Javascript