VNVinh Nguyen Quanginvincenguyen.hashnode.dev·Jul 11, 2024 · 5 min readPolymorphismLet's talk about concrete type boolean string Date[] {a:number} | {b:string} (numbers:[]numbers)=>number Concrete types are useful when we know precisely what type we're expecting, and want to verify that type was actually passed. But sometime...00
VNVinh Nguyen Quanginvincenguyen.hashnode.dev·Jul 7, 2024 · 6 min readReact nativeHow react-native works ? We have JS land and native platform code(IOS, android) We have a React-native bridge to communicate between JS and native platform (binding) If we have a list of events is being sent to JS thread to handle some business-logi...00
VNVinh Nguyen Quanginvincenguyen.hashnode.dev·May 2, 2024 · 11 min readReadonly and proxy in JSIt's true that we never have the real constant in JS like in any other language out there (Java, C#, etc.), you name it.In this blog, I'll walk you through how we can make it possible in JS. Of course, we need more than a constant keyword in JS. With...00
VNVinh Nguyen Quanginvincenguyen.hashnode.dev·Mar 1, 2024 · 6 min readAlgorithmsControl flow for algorithm Use caseUse this Exit only the loop? Bonus → only the most inner loopbreak Skip this iteration and continue loop?continue Exit function early?return Use-case of break include(substring) { const str = th...00
VNVinh Nguyen Quanginvincenguyen.hashnode.dev·Feb 20, 2024 · 35 min readData structure in JSA data structure is a way of organizing and storing data in a computer or a program- ming language. It defines the relationship between the data elements, the operations that can be performed, and the rules or constraints for accessing and modifying ...00