A simple web app to calculate the profit and loss on a stock.
1. Enter the intitial price of the stock in the first input field. 2. Enter the quantitty of the stocks in the second input field. 3. Enter the current price of the stock in the third input field. 4. Finally, Click on the calculate button to view results If the initial price is greater than the current price,then it is said to have a lossIf the current price is greater than the initial price, then it is said to have a profit.
- HTML
- CSS
- JavaScript