This is profit loss app and it is created using javascript.
It takes initial price from user then it takes quantity stocks means how much stock do user have and as a third input it takes current price of the stock. By this value user can know whether he/she is in profit or loss.
- Html
- CSS
- Vanilla Js.
- Please check here is Demo