JavaScript

Could someone help me solve this problem with javascript? Palindrome Check: Write a function to check if a string is a palindrome. he's number 3 on this list - [https://chat-to.dev/post?id=141](https://chat-to.dev/post?id=141) [\#javascript](https://kbin.social/tag/javascript)

2
3
https://danielrotter.at/2022/01/16/some-reasons-for-disliking-react-hooks.html

React has introduced hooks to replace classes. Some people are huge fans, while I am a bit more skeptical. An explanation.

1
0
marvinh.dev

Many popular npm packages depend on 6-8x more packages than they need to. Most of these are unnecessary polyfills and it's one of the key reasons node\_modules folders are so large. The eslint ecosystem seems to be most affected by this.

3
0
javascript
JavaScript Deykun Now 100%
>

> > > **It is now common knowledge that in 1995 Brendan was given only 10 days to write the JavaScript language and get it into Netscape.** Date handling is a fundamental part of almost all programming languages, and JavaScript had to have it. That said, it’s a complex problem domain and there was a short timeline. Brendan, under orders to “make it like Java” copied the date object from the existing, infant, java.Util.Date date implementation. This implementation was frankly terrible. In fact, basically all of it’s methods were deprecated and replaced in the Java 1.1 release in 1997. Yet we’re still living with this API 20 years later in the JavaScript programming language. \~ [https://maggiepint.com/2017/04/09/fixing-javascript-date-getting-started/](https://maggiepint.com/2017/04/09/fixing-javascript-date-getting-started/) > > [\#javascript](https://kbin.social/tag/javascript)

2
0
github.com

The primary need for the project was to make it faster (less button clicks) to resize images before uploading to websites. It has a super-optimized workflow that has size presets and auto-downloading baked in.

1
1

I am really proud of how it looks! Try it out: [https://minnie.untone.uk/passwordgen.php](https://minnie.untone.uk/passwordgen.php) [VIDEO](https://imgur.com/SW3Gmyk) [\#css](https://kbin.social/tag/css) [#frontend](https://kbin.social/tag/frontend) [#javascript](https://kbin.social/tag/javascript) [#html](https://kbin.social/tag/html) [#webdesign](https://kbin.social/tag/webdesign)

2
0

Unlike my past gallery which has similar code and took me hours upon hours upon hours,,, this took me about 2 hours in total. Still a lot! But taking into account designing the visuals and then the code I am a super beginner with, it makes sense. This marks like day 4 of my JS, CSS, and HTML journey C: [VIDEO](https://imgur.com/LpseLc0) [\#javascript](https://kbin.social/tag/javascript) [#html](https://kbin.social/tag/html) [#css](https://kbin.social/tag/css)

3
0

I began learning JS abt 2 days ago. I watch a combined 12 hour course, but I went in feeling like I never saw JS in my life. It took me several hours of fiddling, looking things up, and skimming the course video until I managed to make the gallery. I am so excited to make more projects using [#JS](https://kbin.social/tag/JS), [#HTML](https://kbin.social/tag/HTML), and [#CSS](https://kbin.social/tag/CSS)! [VIDEO](https://imgur.com/49SQ5OY) [GALLERY ON SITE](https://minnie.untone.uk/olliegallery.php) [\#javascript](https://kbin.social/tag/javascript) [#frontend](https://kbin.social/tag/frontend)

2
0

I'm working on a personal project, [https://www.packetradiomap.com](https://www.packetradiomap.com). I need to `npm install` and `npm run build` but I'm getting this error: `@parcel/core: Failed to resolve ol/control/Control from ./node_modules/sidebar-v2/js/ol5-sidebar.js` I'm using this package: [https://github.com/Turbo87/sidebar-v2](https://github.com/Turbo87/sidebar-v2) in my project, along with OpenLayers 5.4. Previously, to get sidebar to work with OL, I've had to add this line to `node_modules/ol/control.js`: `export {default as Sidebar} from 'sidebar-v2/js/ol5-sidebar.js';` That would get things working. But now, I get the error mentioned in the title: `@parcel/core: Failed to resolve 'ol/control/Control' from './node\_modules/sidebar-v2/js/ol5-sidebar.js' C:\\Users\\username\\WebstormProjects\\PacketMap\\node\_modules\\sidebar-v2\\js\\ol5-sidebar.js:2:21 1 | // JS imports > > > 2 | import Control from 'ol/control/Control'; > | ^^^^^^^^^^^^^^^^^^^^ > 3 | > 4 | export default class Sidebar extends Control {` > > `ol/control/Control` definitely exists. Does something need to be changed?

2
0
https://eisenbergeffect.medium.com/2023-state-of-web-components-c8feb21d4f16

Much has happened in the world of Web Components since v1 reached full support in 2020. And even more, is planned for the future. Let’s take a look at a few notable examples of what has been built with the current standards, as well as survey some of the work going into new Web Component standards in 2023 and beyond.

3
0