Unicode – in strings

A kata to (re-)learn about Unicode | in strings | How to use unicode in strings. | 4 tests to solve | Difficulty Level: INTERMEDIATE

JavaScript Katas - Continuously Learn JavaScript. Your Way.

**Homework**
How would you "read" the second result from the generator?

Or practice the yield expression and many more things on:
All the katas – https://jskatas.org
Kata on generators – https://jskatas.org/katas/es6/language/generator/yield/

#Learn #JavaScript with #tests
#jskatas

Home

jskatas.org | JavaScript Katas | Continuously Learn JavaScript. Your Way.

JavaScript Katas - Continuously Learn JavaScript. Your Way.

I released my first article aimed at those new to #JavaScript, titled 'Learning JavaScript Arrays.' It adopts a test-driven style, inviting readers to solve small tests within the article.

πŸ‘‰ https://jskatas.org/blog/2023/09/29-learn-arrays/?source=mastodon

I saw the array section on jskatas be most used, so I thought maybe lets dive a bit deeper and I brought arrays, the knowledge and the test approach together. What do you think? I would love to get feedback.

#learning #JavaScript #jskatas #tests #testdriven

Learning JavaScript Arrays

An array is like a queue where you can have zero, one or many values. The first value can be found at index 0, and others follow. An empty array, like a queue with no one in it, is written in JavaScript as `[]`. The `[` and `]` are the start and end markers, and items inside are separated by commas.For example, to make an array with the numbers 0 to 3, you write `[0, 1, 2, 3]`.

JavaScript Katas - Continuously Learn JavaScript. Your Way.

1️⃣ The property `function.length` indicates the number of parameters a function expects

WHEN reading `length` of a function without parameters
THEN it is 0

WHEN a function is defined with two parameters
THEN length reports 2

WHEN calling the function with 0 parameters
THEN the length still indicates the expected number of parameters

Here we go two #JavaScript katas #jskatas about `function.length`

ES1: https://jskatas.org/katas/es1/language/function-api/length/
ES6: https://jskatas.org/katas/es6/language/function-api/length/

`function.length` (as per ES1 spec)

A kata to (re-)learn about Function API | `function.length` (as per ES1 spec) | The value of the `length` property (an integer) indicates the "typical" number of arguments expected by the function | 5 tests to solve | Difficulty Level: BEGINNER

JavaScript Katas - Continuously Learn JavaScript. Your Way.

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] https://www.ecma-international.org/wp-content/uploads/ECMA-262_3rd_edition_december_1999.pdf
[2] https://www.ecma-international.org/wp-content/uploads/ECMA-262_2nd_edition_august_1998.pdf

#JavaScript #specification #jskatas

πŸ‘€ You're a newbie, JSKatas takes you by the hand and helps you learn at your speed! Start with an easy kata [1] to get the hang of it and find out if you like it. For example learn how to declare a variable [2].

[1] https://jskatas.org/katas/groups/level-easy/
[2] https://jskatas.org/katas/es6/language/block-scoping/const/

#learn #JavaScript #jskatas

Easy Katas

All the easy katas

JavaScript Katas - Continuously Learn JavaScript. Your Way.

I released one new kata, a kata about `String.raw`. πŸŽ‰
❓ What is it?
`String.raw` is a tag function for a template literal, which returns the raw string, e.g. \\n (not \n) for a line break. [1]

🧐 I find it hard to explain what it is. I also feel this is a very edge case thing, just like Reflect, not many seem to know and use it.
Feedback is very welcome.

[1] https://jskatas.org/katas/es6/language/string-api/raw/

#JavaScript #learning #tests #jskatas

`String.raw`

A kata to (re-)learn about String API | `String.raw` | `String.raw` is a tag function for a template literal, which returns the raw string, e.g. \n (not ) for a line break. | 8 tests to solve | Difficulty Level: ADVANCED

JavaScript Katas - Continuously Learn JavaScript. Your Way.

A new #jskatas rabbit hole found `String.raw`.
Actually I was trying to understand and improve the template-strings-raw kata [1], but that led me to learn (again) what `String.raw` [2] is actually good for, and even more important why the array of strings passed to a tag-function gets a `raw` property.

❓ How much relevance does this feature have? πŸ€·πŸ»β€β™€οΈ

πŸ§‘πŸ½β€πŸŽ“ Anyways, I like digging into it to understand it. πŸ’‘

[1] https://jskatas.org/katas/es6/language/template-strings/raw/
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw

#JavaScript #learning #withTests

`raw` property

A kata to (re-)learn about Template strings | `raw` property | The `raw` property accesses the string as it was entered. | 5 tests to solve | Difficulty Level: INTERMEDIATE

JavaScript Katas - Continuously Learn JavaScript. Your Way.

Hab mir mal den Schedule der c't webdev @ctwebdev angeschaut https://ctwebdev.de/agenda2023/ und ich bin immer wieder ziemlich irritiert wie wenig Rolle eigentlich JavaScript als Sprache spielt, es geht immer um alles was oben drauf gesetzt wird.

Aber gut, umsonst mache ich ja nicht sowas wie #jskatas und #jslang, weil ich denke dass zuviel Potential, das mit der Sprache noch ausgeschΓΆpft werden kΓΆnnte, auf der Strecke bleibt.

Agenda 2023 - c't <webdev>

...
We're all about getting your hands dirty with real-world coding challenges! πŸ€“
https://jskatas.org

🎯 Sharpen Your #Skills with Focused Drills 🎯
Consolidate your existing knowledge and push your skills to the next level! πŸ“ˆ
Take Control of Your Learning Journey #JSKatas empowers you to actively engage with #JavaScript, offering a learning experience that's as unique as you are! 🌈
https://jskatas.org

Home

jskatas.org | JavaScript Katas | Continuously Learn JavaScript. Your Way.

JavaScript Katas - Continuously Learn JavaScript. Your Way.