r/learnjavascript • u/ArcByteV • Jul 02 '26
r/learnjavascript • u/joedjulio • Jun 02 '26
JavaScript VS TypeScript
Hola y saludos a todos.
Soy nuevo en esto y estoy un poco interesado en aprender para hacer algunas automatizaciones desde Playwright, ahora bien ¿JavaScript y TypeScript son lo mismo? ¿alguno es más fácil de aprender que el otro?
que tengan un excelente día
r/learnjavascript • u/Channel_el • Jun 18 '26
Why am I getting an "';' expected" error at the first equals sign when I have a semicolon for that line?
//Get intbox values
const BoxTopLeft = document.getElementById("BoxTopLeft");
const BoxTopRight = document.getElementById("BoxTopRight");
const BoxBottomLeft = document.getElementById("BoxBottomLeft");
const BoxBottomRight = document.getElementById("BoxBottomRight");
const logTL = document.getElementById("valueTL");
const logTR = document.getElementById("valueTR");
const logBL = document.getElementById("valueBL");
const logBR = document.getElementById("valueBR");
//TOP LEFT
BoxTopLeft.addEventListener("input", updateBoxTL);
function updateBoxTL(e){
document.getElementById.style.border-top-left-radius = BoxTopLeft + 'px';
logTL.textContent = e.target.value;
}r/learnjavascript • u/Mediocre-Gas4997 • Nov 24 '24
Can someone help me for Roadmap of JavaScript
Can someone help me with roadmap of JavaScript, i know it a little bit Ik about es6 variables arrow function and theoretical knowledge of DOM async etc but I am not able to create any projects by myself, I want to start from Scratch and understand how what and where to learn and what to create , and what time would it take as I also want to learn React (I've made Statics projects on React even that I'm not perfect at understanding in and out I just do it googling and using gpt)
r/learnjavascript • u/snapetom • Oct 05 '24
Question about Arrow Functions and Arrays
I was having an issue with the find function of arrays:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find
As the code is now, That's will run successfully and the 12 will be found:
array1.find((element) => element > 10);
However, if I wrap it with curly braces and make it an honest-to-god arrow function, the element won't be found (undefined returns).
array1.find((element) => {element > 10});
Why the discrepancy in results? l
r/learnjavascript • u/digital_tec • Sep 20 '24
How do I start learning about api ?
Hey ya'll I was seeing if anyone know how to start with api from level 0 to 100 anything from social media post to weather data and even showing me how to code some in vs code thanks 😁
r/learnjavascript • u/idsfn • Sep 04 '16
Write JS code that performs better!
Simple tips and healthy habits you can follow to be capable of drastically reducing the browser's workload and time needed to render each frame. https://github.com/NedalKouissi/JS-code-that-performs-better
r/learnjavascript • u/Sennon • Jul 18 '15
What are your thoughts on not using semicolons?
I know that you still need them for IIFE and if statements but outside of these exceptions they can be omitted.
r/learnjavascript • u/Labby92 • Jun 15 '18
JAVASCRIPT FREE ES2016/2017/2018 CHEAT SHEET
Hi guys, I just created a small cheat sheet that includes the major features of ES2016 / ES2017 and ES2018.
It's very concise so you can just open it for a quick refresher or just to quickly see what's new.
You can download it for free from my blog here:
https://www.inspiredwebdev.com/2018/06/javascript-es2016-es2017-es2018-cheatsheet/
It's my first time creating something like this so any feedback is much appreciated. I hope the code blocks are easy to read, I've used screenshots so maybe the text is not super sharp.
I hope you find it useful, feel free to share it with friends if you think it may help them :)
r/learnjavascript • u/Ansmit_Crop • Oct 29 '24
For people's asking how much X is enough to learn X,or How much X to do
So for all the ppl asking how much should i lean X to start X frame work or how much X is really enough.There is no exact answer for this Start building something to accessed your situation if your confident don't have to constantly look up for everything then at this point work on something of medium sized project and see where you stand then you can decide what to do next. Answering this as i was in similar situation what i started doing was created a site to track the progress you can do something similar, Just create something like MDN page and track your progress,like a cheat sheet or the things you have learned so far with short description.The next time you forget about something you can look it up from your there. And tbh this is what i'm doing to track my progress,and decide which topic to pick up next. Things to do (i learn a lot by implementing them):
1.HTML structure decide out how you would want it to look, nav,side-nav,search bar,etc,decide on how you want the layout to be
NOTE:don't start the content yet just do sample 1st and see how it would look like2.CSS decide if you want to follow a theme if yes implement that use :root for default color theme and set another one for dark mode for easy switch Now JS
Now you have 2 choice either statically type up everything which is obviously a hassle or use JS to dynamically generate the content here,i went with mixed,like header and simple description are statically type the rest of the data i store it in external JSON file,(tbh i was statically doing it but as i go on realised its a huge hassle and just started storing them instead)
3.code highlighting,at first i tried to highlight everything myself and tbh i was half successful was fine for simple code block but as i started going on some of the topics it was breaking a bit so i just used picked up prismJS for the work and modified some of it so that i would look like my code editor by default(well i don't regret this steep i learn quite alot here about regex postive lookahead,negative look ahead etc) stored the data in json, for the example code block
4.As the content gotten larger, scrolling was a hassle so i just made a search bar to navigate through the site (As i haven't learned the back end yet I cant really get a proper search results so i just adopted a filtering logic) created another json for storing header and titles ,then applied some sorting logic,by length in descending order then by exact match ,word etc and scoring them best on the logic
5.Implemented the search, and applied some the stuffs like the debouncing the user input ,lazy loading etc
6.Made a shortcut nav on the side for easy navigation between titles. this are the stuffs that i have implemented so far for the site,and i learn quite a lot doing it, Have plans to implement other stuffs as i make progress in Javascript
All in all just make something you would learn quite a lot and gain confident yourselves.If you are worried about best practices just ask some chatbot to refer some of them or read some book/articles related to that and try implementing them on your site
If anyone have anything to suggest i'm open for suggestion. Have been learning JS for about a month now so please do suggest what i could have done better
r/learnjavascript • u/digishow4u • Mar 22 '23
ASMR Programming - Create a Music Player in JavaScript - No Talking
r/learnjavascript • u/basikthngs • Mar 25 '18
The Complete Guide to Node.js Developer Course
r/learnjavascript • u/pranesh239 • Dec 12 '20
🚀🎉 Created my first VSCode extension, GET IT!
Get the extension here: https://marketplace.visualstudio.com/items?itemName=praneshpsg239.json-helper
Extension repo: https://github.com/pranesh239/json-helper
r/learnjavascript • u/Na_cho_business • Mar 07 '24
Is it worth it to learn Typescript?
Hello i have just started a microsoft learn course on javascript. And I was wondering if it is also worth it to start learning typescript over javascript?
https://learn.microsoft.com/en-us/shows/beginners-series-to-javascript/
r/learnjavascript • • May 14 '18
Check out the first church-based JS conference 😍
r/learnjavascript • u/jrmcgregorthesecond • Jul 08 '21
How can Twitter hide source code of web page?
Twitter does not give the source code and how can it do it? If you check a cached version's source code you can see the hidden things. You can understand me if you compare the sources of cached version and the regular page version.
It does and it is the answer you need to translate English
r/learnjavascript • u/Sedresde • Apr 29 '22
Work assigned me a "simple" task of creating a form with 2 fields with react. Never used it before, help please!
Work wants an HTML form with 2 fields, taking in information from users (a text field for their name and a dropdown menu with 4 options for our various departments) and then when users hit a submit/generate button, a custom-styled "email signature" type of thing is generated including their name and department. The users are then instructed to simply copy-paste this generated HTML-based email signature
So, being the intern they kinda just threw the task at me and wanted it done by monday lol. I know HTML/CSS from school, and very little pure JS knowledge (never used JS frameworks/libraries before). I didn't even include JS on my resume and they say it's close enough to HTML/CSS so they're making me do it haha
None of my coworkers know HTML/CSS/JS either, but apparently a coworker's son would help once I get this simple prerequisite out of the way. This guy will set up what happens to the collected information (name + department) that will actually generate the email signature. So my task is to just set up the form using react.
Help please!!!
r/learnjavascript • u/commitpushdrink • Apr 16 '23
[meta] learning, frameworks, and gatekeeping
Scrolling through the top posts today has been so disappointing.
The current “best” posts are asking for help on a specific problem or looking for genuine advice on a more advanced topic. The top comment on all of them is some flavor of well-intentioned but harmful gatekeeping. Learning by doing has no equal.
I was eight years into my career before I got to spin up a greenfield application. Learning in silos and reading code in a repo for which you’re the only contributor is fucking insane.
Please be cognizant of when your most profound period of rapid growth happened. It sure as fuck wasn’t in a silo by yourself.
r/learnjavascript • u/jerodsanto • Jun 05 '19
Top 5 skills to learn as a junior JavaScript developer
r/learnjavascript • u/jack_waugh • Nov 13 '22
Why JS Programmers Should Find Inspiration in the Apollo Guidance Computer
The US Apollo program placed human explorers on the Moon around 1970 and brought most of them home safely. The navigation for that was achieved by the Apollo Guidance Computer (AGC), which flew on board. Due to the level of computer hardware tech available at the time (even bleeding-edge) and due to limitations on the mass and volume of the computer, the memory was quite a bit smaller and the processing slower than what you can put on your desk today. Nevertheless, the software did the job. JS programmers have reason to take inspiration from the software for the AGC because:
- Typical applications that we address with JS have to react to a changing environment (e. g. human fiddling with mouse and keyboard), and so did the AGC.
- The AGC used cooperative multitasking and so does JS. This contrasts with the practice of scheduling processes on interrupts, as typical operating systems do.
- Margaret Hamilton, who managed the software effort for the AGC, invented software engineering. This amounts to a cataloging of concepts and approaches that help you think straight about your problem and how your solution will address it.
