Executing Dynamic Code in a Reveal.js Presentation / / No Comments Please take what follows with a Titanic-sized grain of salt and do your best not to do what I did, but despite that, I thought this little hack was interesting and I figured I’d share it anyway. I typically use Reveal.js for my presentations, especially when talking about the web platform, as it makes it easy to do slides and demos, all in my browser. Usually when I want to embed live code in a slide, I just use a CodePen embed. While this works well, sometimes it feels like overkill for real short code samples. I wondered if it would be possible to execute code directly in the slide itself such that I could show a one-liner in the slide, and then the result after. This is what I came up... more → Posted in: JavaScript Tagged with: code, dynamic, Executing, Presentation, Reveal.js
Setting Dynamic Objects Keys in JavaScript / / No Comments It’s always a good day when you get pleasantly surprised by JavaScript, even more so when you find that it’s a feature that’s been around for a while (ES6, which according to Google was standardized in June of 2015). Earlier today I saw some syntax that didn’t look quite right to me. Here’s a simple example of it: let type = 'name';let person = { [type]:'Ray'} Specifically, the thing that surprised me was this portion: [type]:'Ray' If you console.log the code above, you get: { name: 'Ray' } And then it makes sense. This syntax allows you to set a dynamic key in an object literal, much like: person[type] = 'Ray'; Apparently, this has been around for nearly ten... more → Posted in: JavaScript Tagged with: dynamic, JavaScript, Keys, Objects, setting
Learn to craft dynamic websites and apps using JavaScript and React for under $25 – VentureBeat / / No Comments Learn to craft dynamic websites and apps using JavaScript and React for under $ 25 VentureBeat “JavaScript” – Google News… more → Posted in: JavaScript Tagged with: apps, craft, dynamic, JavaScript, Learn, React, under, using, VentureBeat, websites
What is JavaScript? The dynamic programming language for websites, explained – Business Insider / / No Comments What is JavaScript? The dynamic programming language for websites, explained Business Insider “JavaScript” – Google News… more → Posted in: JavaScript Tagged with: Business, dynamic, explained, Insider, JavaScript, Language, programming, websites