The electroscope will become charged with the same type of charge as the rod. This is because when the charged rod is brought close to the electroscope, the electrons in the leaves of the electroscope are repelled by the electrons on the rod. This causes the leaves of the electroscope to spread apart. When the rod is removed, the electrons in the leaves of the electroscope will remain separated, causing the leaves to remain spread apart.