-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path05_strings.js
More file actions
32 lines (23 loc) · 843 Bytes
/
05_strings.js
File metadata and controls
32 lines (23 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { url } = require("inspector");
const { string } = require("yargs");
const name="utkarsh"
const repoGit=4
// console.log(name + repoGit + "Value");
console.log(`hello my name is ${name} and my repo count is ${repoGit} `);
const gameName = new String('hitesh')
console.log(gameName[0]);
console.log(gameName.__proto__);
console.log(gameName.length);
console.log(gameName.toUpperCase());
console.log(gameName.charAt(2));
const newstring = gameName.substring(0,4)
console.log(newstring)
const anstring = gameName.slice(-8,4)
console.log(anstring);
const newstrings= " utkarsh "
console.log(newstrings);
console.log(newstrings.trim());
const url1 = "https://utkarsh.com/utkarsh%28"
console.log(url1.replace('%28','-'))
console.log(url1.includes("utkarsh"))
console.log(gameName.split('-'))