Wednesday, January 1, 2025

Misc Javascript points

 Nodejs can support multithreading through use of promises

_ is the numeric separator for javascript, that means the numbers 10_000, 11.23_003 etc ar valid numbers in javascript. They will be treated as and displayed as 1000 , 11,23005 etc by  javascript.


You can use & at the end of node command to run the process in background. (may be unix feature)

node xxxx & 

ps  -> list all processes 

kill NNN  kills process with id NNN

No comments:

Post a Comment

Kube-proxy in Kubernetes

Kube-proxy is a foundational Kubernetes network agent that runs on every node in a cluster. Its primary job is...