1 follower
UI Developer
Google Chrome's DevTools has the option to view your webpage on an emulated mobile device under Inspect Element > Toogle Device Tool Bar (2nd option on top left hand corner). If you want to add your own device, say for example, Xiaomi Mi Note 10 Pro...
Today's post is super short and simple and it's probably known to most developers. It's about accessing a function of an object using [] instead of dot (.) Let's say you have a condition - if flag is true then use max, if false, use min. let result, ...
A lot of times, we try to track user details by embedding an image in the email which is actually a script that does some logging before actually spitting out the image content. This is old-school. logo.php : <?php $IP = $_SERVER['REMOTE_ADDR']; $B ...
If you want your React app to connect to MetaMask's web3, const web3 = new Web3(window.web3.currentProvider);will no longer work as suggested. We need to MetaMask to authorize the connection which is a manual process by clicking on a button to author...
So, I have started learning Angular. I like it as it enforces OOPs concepts via TypeScript. Here I show how to input data into a form and display each entry as a row in a table. import FormsModule into app.module.ts import { FormsModule } from '@ang...
Number to words (Indian style - crore, lakh). The function is recursive. const HUNDRED = 100; const THOUSAND = HUNDRED * 10; const LAKH = THOUSAND * 100; const CRORE = LAKH * 100; function number2words(num) { let str = ''; if (num >= C...