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...Jul 18, 2022 · 2 min readajitpsakri.hashnode.dev
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...Jan 9, 2022 · 2 min readajitpsakri.hashnode.dev
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...Sep 7, 2021 · 6 min readajitpsakri.hashnode.dev
Basics of Regular ExpressionRegular expressions are searching patterns in strings. Think of regular expression as an Advance search of ctrl + f. If you learn this, you can find maybe two words or find any number that starts with 9. For simplicity of understanding, I'm using thi...Aug 18, 2021 · 3 min readajitpsakri.hashnode.dev
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 ...1AJul 19, 2021 · 1 min readajitpsakri.hashnode.dev