

let name;
let website;

console.log("Name: ", name);
console.log("Website: ", website);

// Length of string
console.log();

// CharAt
// console.log("Character at: ", );

// index of 
let index;
console.log("Index of 'www.':", index);

let lastIndex;
console.log("Last index of '.'", lastIndex);

// slice
// website = "https://www.bots.in.th";

// let fromIndex = website.indexOf();
// let toIndex = website.indexOf();

let sliceWord;
console.log("Slice word:", sliceWord);



let name;
let website;

console.log("Name: ", name);
console.log("Website: ", website);

// Length of string
console.log();

// CharAt
// console.log("The First Character : ", );
// console.log("Character at the end: ");

// index of 
let index;
// console.log("Index of 'www.':", index);

let lastIndex;
// console.log("Last index of '.'", lastIndex);

// slice
console.log('==== Slice =====')
// website = "https://www.bots.in.th";

// let fromIndex = website.indexOf();
// let toIndex = website.indexOf();
// console.log('Slice from index: ', fromIndex, 'to index:', toIndex );

let sliceWord;
// console.log("Slice word:", sliceWord);

Update example for more easy to understand
Update example for more easy to understand
