What does this code display in the console?

Great GrandfatherGreatgrand FatherGreat Grand Father

The following code display Great Grandfather in the console.