Web Cartography More JavaScript Learn the basics of JavaScript. Goals Exercise let sentence = “I’m a 1000 years old”; ● turn sentence into an array ● find the only numeric item (don’t use array indices) ● subtract any number you want from the item found ● turn the array back to a string Logical operators let age = 20; let isMale = true; let isAdultMale = age > 18 && isMale; let isAdultOrFemale = age > 18 || !isMale; BOM Collection of objects accessible inside any browser window Browser dependent Most important (to us): window, document (DOM) DOM https://devdocs.io/dom/document Interface representing any web page loaded in the browser Functionality global to the document Exercise Count all the