Hello, checkiomates🐱👤!
Final days! Prices Go Up September 1 — Lock In Your Rate Now! 💡 Renew or subscribe before September 1 to keep the current lower price for the next year.
This week's JavaScript digest is a deep dive into the language's core and future. We begin by charting a course for web development with an educational overview, followed by an exploration of the evolving landscape as we peer into the future of JavaScript. We also take a moment to understand the seemingly simple but surprisingly versatile href attribute, revealing its hidden possibilities. Finally, you can put your skills to the test with a practical mission: writing an algorithm to find the peaks on a digital mountain range.
💡TIP
At your profile, after clicking on big percent number of your progress, you may see module and methods you have already used in your shared solutions. If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!
🏁MISSION
Mountain Peaks by freeman_lex -
A computerized geographic information system represents the profile of a mountain through a sequence of integers, where no two consecutive numbers are the same. A peak is detected as three consecutive numbers where the middle number is bigger than the other two or two consecutive numbers at left/right end of a sequence where the left/rightmost number is bigger. Your program must analyze this sequence to determine whether the mountain represented has more than one peak (return true). If not enough data or just a single peak - return false.
assert.strictEqual(checkPeaks([2, 3, 5, 6, 7, 5, 4, 2]), false); assert.strictEqual(checkPeaks([2, 3, 6, 5, 4, 6, 3, 2]), true); assert.strictEqual(checkPeaks([1, 2, 3, 2, 1]), false);
📖ARTICLES
New series of blog posts: learning web development -
Dr. Axel Rauschmayer is taking a break from his deeper technical articles to produce a series of articles for beginners!!!
JavaScript continues to evolve rapidly, driven by the work of TC39 and active contributors like the Deno team. At the recent 108th TC39 meeting, nine proposals moved forward across stages — from early concepts (Stage 0) to fully standardized features (Stage 4). Here’s an overview of what’s coming soon, what’s experimental, and how these changes might impact the way we write JavaScript.
A Few Things About the Anchor Element’s href You Might Not Have Known -
What are all the values you can put in an anchor tag’s href attribute?
👩💻CODE SHOT
What do you think the following code does?
function checkio(values: number[]): number[] {
let ret: number[] = values.sort((a, b) => a * a - b * b);
return ret;
}
🙌 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! ⤵
