Skip to main content

Posts

Recent posts

Recurssion function

Recusrion function: 1. Follow the stack  2. Height of stack is almost equal to height of n // in the given code The cycle to call function. 1.Main to call function 2.Base 3.Work Like ex. public class Recursion{ public static int cal(int x, int n) { // Code execute when filling of stack  // First base 1 If(n==0){ return 1; } //Second base 2  If(x==0){ return 0; } // Work //calling function recursion int xpm= cal(x, n-1); // The code is executing below this when in deleting the level of stack  int xpn= x* xpm; return xpn } //Main to call the function first time public static void main(String args[]){ int x=2, n= 5; System.out.println(cal(x,5)); } }

Ninth day for full stack development -->> Java Script: String, Primitive type, variable

JavaScript Begining  clear{}--> to clear the console Console Type :-  REPL --> Read Evaluate Print Loop Primitive type  1. Number :-  math operation Format to do math operation. :- PEMDAS -> parenthesis, exponents, multi, division, addition, subtraction. use Mod % for Remender if Zero than even and if 1 then odd, divide by2. and two use exponent uses two-star(**) use( typeof), to get which type o primitive type. 2. variable:- .let .Const> the values can not change, We store value does not change in your app, this does not work on array and object. .var--> Variable naming. can use _ use lower case not use no. 3. String :-  can define in double quotes("") or single quotes ('') use index in string :- var_name[0]; get index length :- var_name.length; can add to string :- "lol"+"lol"; Plus sign(+) is concatination. using method :- thing.method() ; using property:- thing.properties; Diff Strings Methods:- Strings.trim() --> trim spaces,...

Eight day for full stack development -->> CSS use type, CSS path define

../ --> use for use file from different folder from similar directory. CSS can use in 3 types. Inline Style The <Style> Element External stylesheet Inline style -> style = " color: aqua; "              <label   for = "meal"   style = " color: aqua; " > Please select meal </label> The <style> Element-> use css in same page. <head>      <style>          h2  {              color :  blanchedalmond         }      </style> </head> External style sheet -> use different file for css. <link rel = "stylesheet" href = "../css/app.css" > ../ --> use for use file from different folder from similar directory.

Seventh day with full stack development --> NPM Package installer

 NPM :- Basic After Download of node js "Npm" install directly. To check the npm in cmd type --> npm Install we can install package 2 types. Locally for the directory of projects. npm install package_name / npm i package_name --> in cmd, make sure firstly open the project folder in which you want to install your npm package. to use the install package const   var_name =  require ( "package_name" ); Globally for all package npm install -g  package_name / npm i -g  package_name--> to install globally, use any directory to install npm link package_name:- open the project folder in cmd and then type command. make package.json file for your all dependencies. Open Project in CMD. Type --> npm init and give detail and click ok, now your package.json file is made. Now installing any package details will we automatically update in package.json file, and make sure all the packages should install locally. Want to install the package, by the package.json Just t...

Sixth Day with fullstack development --> Play Node Js CMD Command.

 Installing Node Js Download Acc. to suitable Environment https://nodejs.org/en/download/ Use CMD:- type "node" Node js REPL:- Use Cmd to know about commands like global, process .exit --> used to come out of repl. https://nodejs.org/dist/latest-v14.x/docs/api/  --> Documentation  basic of node js require ( 'fs' ); -->define the filesystem as constant process . argv [ 2] --> read command from the cmd by process, argv[2] get the string in array fs . mkdirSync ( filename );->create folder without callback      fs . writeFileSync ( ` ${ filename } /index.html` ,  '' ) --> create a file

Basic CMD Commands

 CMD commands:- cd\ --> redirects to the parent drive cd path --> redirect to the given path, to redirect to a path you have to first go to the parent drive. cd.. -> it take out you from the current folder. d: -> to change the drive, drive name : cd d: -> tells the open folder in the given drive. cd /d  c:\windows --> to go directly from the given drive to another drive path. dir -> to check the content of the drive cmd mkdir -> to create a folder in a current directory, give mkdir folder name. type filename -> to make the file, provide extension also. ping --> to know the speed of a website. systeminfo -->tell all the info of the system color 02--> to change color of text in green and background in black. attrib +h +s +r filename --> hide the file attrib -h -s -r file name   --> unhide the file ipconfig /displaydns--> to check the incognito history. ipconfig /flushdns --> to delete incongnito history. doskey /history -->...