Advertisement
ListonFermi

Boarding Week 2 Practical Workouts

Aug 21st, 2024 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | Source Code | 0 0
  1. const fs = require("fs");
  2.  
  3. const data = fs.readFileSync("hello.txt");
  4. console.log(data.toString())(async function readData() {
  5. const data = await fs.readFile("hello.txt");
  6. console.log(data.toString);
  7. })();
  8.  
  9. const val = useMemo(() => {
  10. return 5 * 10;
  11. }, []);
  12.  
  13. // import React.lazy()
  14.  
  15. // <Suspense fallback={Loading} >
  16. // <LazyLoadedComponent/>
  17. // </Suspense>
  18.  
  19. // const decode = jwt.verify(token,secret)
  20.  
  21.  
  22. function extractMin( curr= this.root ){
  23. if(!curr.left){
  24. return curr.val
  25. }else{
  26. extractMin(curr.left)
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement