0
I am studying nodejs, and doing some tests with some native modules of Node I came across the following instruction.
For free memory printing on computer:
const os = require('os');
console.log('Memoria Livre: ', os.freemem());
This comma separating the string from the constant is concatenative, correct?
If yes, what is the difference between comma and/or +
console.log('Memoria Livre: ', os.freemem());
and/or
console.log('Memoria Livre: ' + os.freemem());
There are other means of concatenation in js?
you can also use += which sum the variable + itself plus the other value
– Marcos Brinner