function capitalizeFirstLetter(str) {
return `${a.charAt(0).toUpperCase()}${a.slice(1)}`;
}
function getSelectedText() {
return window.getSelection().toString();
}
const arr = [10,9,1,11];
function sortNumbers = (a , b) => a - b;
arr.sort(sortNumbers);
const arr = [1,2,3];
const arrCopy = [...arr];
const obj = {a:1};
const objCopy = {...obj};
Object.assign({}, obj1, obj2)