how to check node version in ubuntu

C++
node -v
Source

Also in C++: