#jskata

2024-10-24

Wanna try and play around with `Object.groupBy()`, which is new pretty in #JavaScript go to
jskatas.org/katas/es15/languag 🚀

#jskata #learning #javascript #testdriven

Showing all the katas, the new one is Object.groupBy()
2024-10-24

The #jskata for this is in the making.
Get ahead by learning all the other 132 katas on jskatas.org

#learning #javascript #testdriven

2024-10-18

Also inspired by our last night's #jslang #meetup I built a #JSKata for you all to practice #JavaScript Proxy a bit.
The basics:

jskatas.org/katas/es6/language

#testDriven #tests #kata #koan #learn

2024-03-27

A new #jskata for learning #JavaScript in depth.

I just released: "The Object() constructor called as a function."
And there are things to learn, even though I do #JS for many years already.

Have fun: jskatas.org/katas/es1/language

The Object() constructor called as a function
the basics
WHEN passing no argument to Object() THEN a new empty object is returned
WHEN passing null THEN a new empty object is returned
WHEN passing undefined THEN a new empty object is returned
calling it with a complex type (or non-primitive)
WHEN passing an existing (empty) object THEN that same object is returned
WHEN passing an array THEN that same array is returned (because it is also "just" an object)
calling it with a primitive
WHEN calling it with true THEN it returns a new instance of a Boolean just like new Boolean(true) would
WHEN calling it with 42 THEN it returns a new instance of a Number just like new Number(42) would
WHEN calling it with a string THEN it returns a new instance of a String just like new String("abc") would
2023-10-11

Interesting, `array.shift()` was introduced in ECMAScript 3 [1] in 1999, see chapter 15.4.4.9. At least it's not part of the v2 spec [2] from 1998. In v2 the last chapter in 15.4.4 is 15.4.4.5.

Expect a #jskata on `array.shift()` to come soon.

[1] ecma-international.org/wp-cont
[2] ecma-international.org/wp-cont

#JavaScript #specification #jskatas

2023-09-03

As usual, when starting a new #jskata it starts out with one tiny thing and becomes five katas.
Three of them are done and will be online soon.

This time its all about bitwise shift operators. And I feel I just scratched the surface.

#learn #javascript #yourWay
#koans

bitwise-shift-operators

all.js
left-shift.js
left-shift-in-depth.js
right-shift.js
unsigned-right-shift.js

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst