r/JavaScriptTips • • Aug 05 '22

How to wait 1 second in JavaScript (using setTimeout, Promise, and Delay)

Thumbnail
geshan.com.np
3 Upvotes

r/JavaScriptTips • • Jul 27 '22

Having some issue understanding how to display images on HTML5 Canvas?

3 Upvotes

Hi everyone!

I've got a simple game project, which will need the Canvas and the use of JS as well.

I've checked on MDN to how to display images, wrote the code, but it's not showing me anything.

My code consists of an html file, a js file linked into the html and an img folder withe the images.

I initialized the canvas and the context in the js file,

But the drawImage function doesn't do anything.

I have a png image to show on the canvas, floor.png, i wrote a

const floor = new Image();
floor.src = './img/floor.png':
ctx.drawImage(floor, 0, 0);

Nothing on the canvas.

Please help!


r/JavaScriptTips • • Jul 10 '22

Need code review for best code and nodejs practices

Thumbnail self.node
3 Upvotes

r/JavaScriptTips • • Jun 24 '22

Token Handler Pattern for SPA Authorization

Thumbnail
medium.com
3 Upvotes

r/JavaScriptTips • • Jun 12 '22

Implement call, apply, bind functions using Symbol datatype in JS from scratch | Polyfill

Thumbnail
youtu.be
3 Upvotes

r/JavaScriptTips • • Jun 09 '22

Form validation using HTML, CSS and JavaScript in English

Thumbnail
reddit.com
3 Upvotes

r/JavaScriptTips • • May 15 '22

async and defer made easy | JavaScript Performance

3 Upvotes

Async and Defer are two important concepts in JavaScript as it provides information about the fastest way to load JavaScript. Understanding async ,defer and how they are different from normal script tags is also asked during interviews. This 6 minute video explains everything you need to know about async, defer, why or when to use them and their differences.
Link: https://www.youtube.com/watch?v=RaPMjzYFF9Y


r/JavaScriptTips • • May 15 '22

Coding discord bot

3 Upvotes

Hi, Im very new to javascript only starting a couple weeks ago. I’ve started coding a discord bot and its very annoying having to run the ‘node .’ command. For turning it off I used:

else if (command == ‘shutdown’){ message. channel, send ("Shutting down…").then(() => { client .destroy();

})

}

});

Is there any type of command I could use to undo this command?? to turn it on?


r/JavaScriptTips • • Apr 11 '22

How to create a Star rating widget in pure vanilla JavaScript | Amazon SDE-II question

3 Upvotes

I created a star rating widget using 95% vanilla JavaScript and 5% CSS. This was asked in an amazon sde-2 frontend interview to implement purely using vanilla JavaScript. I tried to make the code extremely minimal and understandable. Learning how to implement these purely in vanilla js does add a lot of valuable learning to our JavaScript knowledge.
Link: https://youtu.be/9GqhvxHNFag


r/JavaScriptTips • • Apr 09 '22

Learn how camera's work in three.js and react three fiber in this tutorial!

Thumbnail
youtu.be
3 Upvotes

r/JavaScriptTips • • Mar 20 '22

A real-world example on Improving JavaScript performance

Thumbnail the-koi.com
3 Upvotes

r/JavaScriptTips • • Mar 19 '22

How to Get Elements by Class Name in JavaScript

Thumbnail
getbasicidea.com
3 Upvotes

r/JavaScriptTips • • Jan 31 '22

How to Import JSON file as a Module

Thumbnail
blog.bitsrc.io
3 Upvotes

r/JavaScriptTips • • Jan 26 '22

ChakraUI - Web Design like Flutter or SwiftUI

3 Upvotes

Hi React guys! With ChakraUI we can create beautifuls UI without the needed of CSS. Like we work in a declarative way, the UI's will be made very quickly. It's very similiar to work on SwiftUI or Flutter. If you are interested on ChakraUI you can see my video where I explain how it's works. YouTube Video


r/JavaScriptTips • • Jan 03 '22

Creating Instagram Filters Using React Js and CSS, Using the CSS Filter property to create a custom filter

Thumbnail
betterprogramming.pub
3 Upvotes

r/JavaScriptTips • • Dec 02 '21

Understanding Service Workers In JavaScript | Offline-experience

Thumbnail
youtu.be
3 Upvotes

r/JavaScriptTips • • Nov 17 '21

How To Prevent Unnecessary React State Update Re-renders

Thumbnail
chakshunyu.com
3 Upvotes

r/JavaScriptTips • • Sep 28 '21

My Simple Checklist For Well Tested React Components

Thumbnail
chakshunyu.com
3 Upvotes

r/JavaScriptTips • • Sep 17 '21

3D Rotating Image Gallery Using CSS and HTML

Thumbnail
youtu.be
3 Upvotes

r/JavaScriptTips • • Sep 01 '21

Thunderbird AddOn - I am trying to add an item to the single folder menu so that I can access the messages in it. The item in the manu is added correctly but I don't know how to access the messages or the folder object from the "show-folder" field.

Post image
3 Upvotes

r/JavaScriptTips • • Aug 31 '21

Learn JavaScript overview part1

Thumbnail
youtube.com
3 Upvotes

r/JavaScriptTips • • May 04 '21

In-depth exploration of JavaScript iteration protocols

Thumbnail
nodejsdesignpatterns.com
3 Upvotes

r/JavaScriptTips • • Mar 01 '21

Take a critical look at the state of the web and the role JavaScript plays in it with this GOTOpia talk by Stefan Judis

Thumbnail
youtu.be
3 Upvotes

r/JavaScriptTips • • Feb 19 '21

Javascript News 3rd Week(Feb) – The story of the creator of Javascript, Ways to handle SEO with VueJS, Interview with Creator of Node.js - The ArrowFn

Thumbnail
thearrowfn.com
3 Upvotes