Posts

Showing posts from October, 2022

Exception handling javascript

 error:- syntax logical run time  <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > Document </ title >      < script >          function   f1 (){              var   a = document . getElementById ( 'nm' ). value ;              alert ( a ); try {      if ( a == "" )  throw   "please fill this box" ;      else   if ( isNaN ( a ))  throw   "p...

react lazyloading

https://www.favicon-generator.org/  Code splitting is  the splitting of code into various bundles or components which can then be loaded on demand or in parallel . As an application grows in complexity or is maintained, CSS and JavaScripts files or bundles grow in byte size, especially as the number and size of included third-party libraries increases. To avoid winding up with a large bundle , it's good to get ahead of the problem and start “splitting” your bundle. Code-Splitting is a feature supported by bundlers like Webpack, Rollup and Browserify (via factor-bundle) which can create multiple bundles that can be dynamically loaded at runtime. With Code splitting, we can reduce the initial bundle size, app loading time, and enhance its performance . splitting the code into different bundles which can be loaded on demand (lazy-loaded) instead of being loaded all at once ,  Chunks  allow us to separate our codes into bundles, which are a group of related chunks packag...

php Array

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta http-equiv="X-UA-Compatible" content="IE=edge">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Document</title>     <style>         table,td,tr,th{             border:1px solid red;         }         </style> </head> <body> <?php $a=array(    'ducat'=> array('php','java','.net'),     'akash'=>array('jee','neet','pmt'),     'arena'=>array('photoshop','3dmax','3dmaya') ); // print_r($a); // print_r($a); echo "<table>"; echo "<tr>"; foreach($a as $key=>$data){        echo "<th>" .$key."</th>";  } echo "</tr>"; foreach($a as $key=>$data){ echo "<t...