Posts

Showing posts from April, 2019

MAVEN Build Tool

Image
What is Maven Maven is a build automation tool used primarily for Java projects. Maven addresses two aspects of building software:   It describes how software is built  It describes its dependencies Also justified as a project management tool used by developers. It is a global repository which provides you with dependencies. Here dependency means the external libraries required to build a project. It provides plug-n-play stuff for maintaining the projects. Maven allows the developer to focus on developing the functionality and support them by providing the necessary libraries which will be mentioned in “pom.xml”. Pom.xml Project Object Model (POM) is an XML file that contains information about the project and configuration details used by Maven to build the project. When executing a task, Maven looks for the POM in the current directory. It reads the POM file, gets the needed configuration information, then executes the goal. POM includes a depende...

Creating a REACT component

Image
Every React app is built out of components You may have one single component in a simple app or a number of components in something more complex. Simple React components can just render a static (hardcoded) HTML markup can be dynamically rendered based on a locally saved JSON data can be nested into each other to create a more complex app layout can be rendered based on a data  provided by a parent component  The simplest React component just renders a bit of HTML markup Complex React components A more complex React components might have more logic inside of them, but at the end of the day, they are also just rendering a bit of HTML markup on the page. can include advanced logic that defines what the returned HTML will look like can contain its own state  can contain lifecycle methods  can include custom methods that will be executed when a user clicks on a button for example Stateless components vs Class components Simple (stateless)...

How Javascript is working-Mechanisms

Image
     Contents   Create a JavaScript variable Create a JavaScript function Assign JavaScript function as a variable Create a JSON Object Understand about the scope and get the idea about the “this” keyword The difference between bind and call How to create a JavaScript class and way of using the prototype     What is closure and behavior of closure Create a JavaScript variable There are no variable types like int, String in JavaScript. The way that creating JavaScript variables is given below. There are three keywords used when declaring a variable in Javascript, namely, var , let and const . var age=15; let age=15; cons age=15; var Method This was the only way to declare a variable before ES6. Here you can declare the same variables more than one time and can be updated. var myFriend = 'Kevin' ; var myFriend = 'Dayana' ; console . log ( myFriend ); // 'Dayana' If you declare variable inside ...