Posts

React JS

react Route https://www.digitalocean.com/community/tutorials/how-to-handle-routing-in-react-apps-with-react-router Create React app command: npm init react-app react-redux-app npx create-react-app my-app //install latest node version sudo n stable To solve the issue unable to get local issuer certificate npm config set strict-ssl=false Redux : https://medium.com/@bretcameron/a-beginners-guide-to-redux-with-react-50309ae09a14 https://medium.com/swlh/what-is-redux-b16b42b33820 https://www.edureka.co/blog/react-redux-tutorial/ Custom table with colspan and rowspan                  <table    >                    <tr   >   <th   rowspan = "2" > Activity </th><th   rowspan = "2" > Code </th>   <th   colspan = "2" > 2021 </th>   ...

PHP-Symfony

https://bytenota.com/symfony-4-creating-a-simple-hello-world-step-by-step/ Install composer.json  dependency using command- composer install composer update Run the application - php bin/console server:run
Server.js-file /**  * Module dependencies.  */ 'use strict'; var express = require('express'); var http = require('http'); var path = require('path'); var app = express(); var routes = require('./config/routeConfig'); var sql = require('./config/connectionConfig'); var sqlTableType = require('./config/sqlTableTypeConfig'); var utils = require('./public/App/utils'); var sqlUtils = require('./public/App/sqlUtils'); // cross domain setup const cors = require('cors'); const corsOptions = {     origin: '*' } app.use(cors(corsOptions)); // all environments app.set('port', process.env.PORT || 3000); app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'jade'); app.use(express.favicon()); app.use(express.logger('dev')); app.use(express.json()); app.use(express.urlencoded()); app.use(express.methodOverrid...

InterView Question

Type Script: Note : need to assign value to variable var/let before use.other wise it will give compile time error 1. What is difference between Let and Var. Var variable have globaly scope. example: var x:string="global"; { var x:string="local"; } console.log(x); output: local now var variable have latest assigned value (either local or global block). Let variable have scope according to block. let x:string="global"; { var x:string="local"; } console.log(x); output: global Now let variable 's local block's value does not change the global value but in var  variable 's local block's value is change the global value. We can not redeclare the let varibale again in same block but var can be declare many times. the  let  variable will not be added to the global window object. if let is decalre inside a block , we can not acces outside that block. it will give undefined compile time error. but var ca...