DSA DATA STRUCTUTRE AND ALGORITHM 1.Printing Printing and then moving cursor to next line JS console.log("hello sharpnerians"); Python print("hello sharpnerians") C++ cout<<"hello sharpnerians"<<endl; Java System.out.println("hello sharpnerians"); Printing and cursor remaining same line JS not possible Python print("hello sharpnerians", end="") C++ cout<<"hello sharpnerians"; Java System.out.print("hello sharpnerians"); 2.Variables its a placeholder to store values x=3 //x is the variable Datatype its defined type of the data to be stored primitive data type=it has value Static defined datatype: In some language, datatype should be mention e.g. int x=5 //java Dynamic defined datatype: n some language, datatype should not be mention e.g. x=5 //python Getting input from user: def calculate ( a , b , c ) : 5 """write the code ins...
STEPS TO CREATE REACT APPLICATION : * Open VS code * Create a new folder (practice) * Open terminal and check the node version by the cmd node -v * To create a react app by the cmd npx create-react-app practicedemo * Then change the directory by the cmd cd model in terminal. * Now we can see the above packages in our application. * To run your react application by the cmd npm start * Then you can the default application of react like the above one. * Do you what to stop running application by press ctrl+c * Then go to Apps.js file and App.css delete the default code and your own. -----------------------------------------------------------------------------------------------------------------------------
Comments
Post a Comment