help learn core concepts in JavaScript with examples