HTML Drag and Drop APIEver wondered as a frontend developer how we can drag an image and paste it in the address bar? This is possible because of HTML Drag and Drop API If we break down the drag and drop event we can see this: Drag starts. The mouse is dragging the eleme...2 min read·ajitpsakri.hashnode.devJul 18, 2022
Difference between Transpiler and compilerJavaScript cannot be compiled and run because it's an interpreted language that means it is understood by browsers and uses javaScript to render UI. So you mean javaScript is transpilered and other languages are compiled? You guessed it right but the...2 min read·ajitpsakri.hashnode.devJan 9, 2022
Add Database to Display Highscore in CLI quiz AppI created 2 CLI Quiz app while doing the Level0 course of neogcamp. After finishing the course I was curious, what if I add a database to a CLI app and store username and their score to display Top 5 high scores. I'm also pretty new to using databas...6 min read·ajitpsakri.hashnode.devSep 7, 2021
AKS test in Javascript: Find if the number is prime or composite.AKS test stands for Agrawal–Kayal–Saxena primality test which is the first mathematical algorithm that can tell if a number is prime or composite. AKS test - If the coefficients of this equation are divisible by 'p'(the number you want to test) then ...1 min read·ajitpsakri.hashnode.dev1AJul 19, 2021