scwebd
9/9/2018 - 6:20 AM

jsDay1Methods

*New JS Methods We Learned Today:*

*alert(), confirm(), prompt():* https://www.w3schools.com/js/js_popup.asp

*console.log() and variants:* https://developer.mozilla.org/en-US/docs/Web/API/Console/log 

*.length in an array* (technically a property and not a method; tells you the number of members/items in an array): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/length

*.indexOf()* (finding the index of an array member): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf

*.toLowerCase()* (makes a string all lowercase): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase

*.toUpperCase()* (makes a string all uppercase): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase