\S
let sample = "Whitespace is important in separating words"; let countNonWhiteSpace = /\S/gi; // Change this line let result = sample.match(countNonWhiteSpace);