Thank you everyone for such generous answer to a stupid question. I proceeded to post this here without even learning the basics of backend.
I was so naive to ask that I am getting the data logged on terminal but how can I get it on frontend LOL!
I was looking to create a stock market ticker kind of component for Indian stocks but couldn't find an API like Yahoo Finance (Yahoo Finance only had US stocks).
So, I scoured the web and found Angel Broker which provided APIs to get the data.
So, I hit npm i smartapi-javascript
and thought that everything is correct why the hell wouldn't it show up in the webpage.
Back then, didn't knew shit about DOM just knew HTML and CSS.
Thank You for understanding my concern and spending your time to answer my stupid query in detail