More people around the globe view the United States positively than do China, but most of them also believe that Beijing is set to eclipse Washington as the world's dominant Superpower, according to a new Pew Research survey.

The study measured attitudes in 39 countries. Overall, the United States got a 63 percent "favorable" rating, while China's was just 50 percent. It revealed that 30 percent of those surveyed had an "unfavorable" opinion of the U.S., while 36 percent held that view of China.

The Philippines, Israel, Ghana, Kenya, Senegal, El Salvador and South Korea gave the U.S. the highest favorable ratings, while Pakistan, Jordan, the Palestinian territories, Egypt, Turkey, China and Argentina scored the U.S. the lowest.

Overall, the U.S. got the best reviews in Africa and the worst in the Middle East.

Copyright 2016 NPR. To see more, visit