Post image
Light Mode
Dark Mode
Sandbox Fern Nullity

Hello, checkiomates๐Ÿฑโ€๐Ÿ‘ค!

This week, we explore Cloudflare's new sandbox environment for serverless development, admire the beauty of a JavaScript-rendered fractal fern, and clear up a confusing concept with a deep dive into JavaScript's null. Our mission challenges you to track a robot's movement around a circular path, counting its visits to a specific control station.

๐Ÿ’กTIP

You may click on any mission tag and see all missions, where this tag is present!
If you want to discover all CheckiO features, visit our tutorial. It's a longread, but it's worth it!

๐ŸMISSION

Scarecrow Robot by freeman_lex -

A farmer employs a scarecrow robot to protect his cornfield. The robot follows a path around the plantation, passing through stations circled. Each day, the robot starts at station 1 and follows a series of commands that move it to neighboring stations, both clockwise (1) and counterclockwise (-1). Given also a number of control station, which is under monitoring, calculate how many times the robot visits the station during a day.

assert.strictEqual(visits(8, 3, [1, -1, 1, 1, 1, -1, 1, 1]), 2);
assert.strictEqual(visits(5, 1, [1, 1, 1, 1]), 1);
assert.strictEqual(visits(2, 1, [1]), 1);

๐Ÿ“–ARTICLES

Sandbox for code from Cloudflare! -

Cloudflare Sandboxes is a new service for running untrusted JavaScript (and Python) code in a safe container-based 'sandbox' environment.

A Quick Tutorial on the Barnsley Fern Fractal -

The Barnsley fern is a fractal that represents a plant-like fern structure.

Why typeof null === object -

Piotr Zarycki goes much deeper into the history than you might expect.

๐Ÿ‘ฉโ€๐Ÿ’ปCODE SHOT

What do you think the following code does?

function checkio(values){
    let str = values.filter(el=>typeof(el)==='string').join('');
    let number = values.filter(el=>typeof(el)==='number').reduce((acc,item)=>acc + item,0);
    return [str,number];
}

๐Ÿ™Œ 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! โคต

Created: Oct. 21, 2025, 4:34 p.m.
0
17
User avatar
freeman_lex