
Hello, checkiomates🐱👤!
This week in JavaScript, we revisit the foundational concepts of the language, explore a provocative critique on how JavaScript has impacted the web, and solidify our understanding of callbacks for asynchronous programming. Adding a touch of fun, we present a mission to automate the creation of catchy celebrity couple names, requiring clever string manipulation based on specific vowel and consonant grouping rules.
💡TIP
We allow users to assign hotkeys to "Run Code", "Check Solution" and stop code. You may see current combinations on buttons and change them in editor menu. If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!
🏁MISSION
Combining Celebrity Names by freeman_lex -
Combining the first names of beloved celebrity couples to a catchy shorthand for mass media consumption turns out to be simple to automate.
assert.strictEqual(brangelina("brad", "angelina"), "brangelina"); assert.strictEqual(brangelina("angelina", "brad"), "angelad"); assert.strictEqual(brangelina("sheldon", "amy"), "shamy");
📖ARTICLES
Dr. Axel is back with his latest book covering all things relating to modern JavaScript at the language level (think built-in data types, modularity, how objects, classes and promises work, etc.).
JavaScript broke the web (and called it progress) -
An esteemed SEO consultant shares his thoughts on the complexity of the modern Web and JavaScript’s role in particular.
What Is a JavaScript Callback? -
A callback is exactly that reference—a function you pass into another function to run later. Grasping callbacks helps you avoid tangled code, make smarter decisions between callbacks and promises, and handle errors more predictably. By mastering them, you'll write cleaner, more reliable code without surprises.
👩💻CODE SHOT
What do you think the following code does?
var ?????????= (data: number[]): number[] => data.map((v: number, i: number): number => (i < data.length - 1) ? Math.max(...data.slice(i + 1)) : -1 );
🙌 Thanks for your attention! Hope to meet you at CheckiO, as well as at our Instagram and Twitter! We are really interested in your thoughts! Please, leave a comment below! ⤵