let molecule = new Molecule();
molecule.hydrogenateCarbons();
Type: Molecule
The function returns the parent Molecule
.
const { Molecule } = require('mcul'); let molecule = new Molecule(); molecule.chainCarbons('C', 5); molecule.hydrogenateCarbons(); console.log(molecule.mass, 'This is pentane\'s mass');