Problem 18. Extract the amount out of this string "Please give Rs1000".

const str = "Please give Rs1000";
console.log(str.length);
console.log(`the amount extracted out of ${str} is ${str.substring(14)}`);
console.log(`the amount extracted out of ${str} is ${str.slice(14)}`);

/*
Output:
    18
    the amount extracted out of Please give Rs1000 is 1000
    the amount extracted out of Please give Rs1000 is 1000
*/