JavaScript
3 Followers 4 Questions

JavaScript is a versatile, high-level language primarily used for building interactive web interfaces. It runs in browsers and on servers via Node.js. Its asynchronous capabilities and massive ecosystem make it essential for modern web development.

let or const for $derived runes in Svelte?

Variables in JavaScript can be defined using either let or const (ignoring the antiquated [var](...

0 votes 7 views 1 Answer Asked 28 days ago
How can I deal with localStorage in SvelteKit SSR?

I'm building a Notice component that users can dismiss, and I'm storing the displayed state of the notice, however, I would like to preserve it across sessions. localStorage seems like a good way to accomplish this, however, when trying to use localStorage I get s...

0 votes 11 views 1 Answer Asked about 2 months ago
How to loop an each block a specific x number of times in Svelte?

I know of Svelte's {#each} block which allows you to iterate over arrays or array-likes. However, there are some cases where I'm not interested in the data of an array, but rather in repeating a block a specific x number of time...

0 votes 22 views 1 Answer Asked about 2 months ago
How can I convert raw markdown to plaintext in TypeScript/JavaScript?

I'm working on adding structured data to question pages on solvin (more specifically implementing [QAPage](https://developers.google.com/search/docs/appearance/structured-data/qa...

0 votes 24 views 1 Answer Asked about 2 months ago
s
69