Yes, but there have been instances of Apple (and in general, ARM as well, though not as much) adding special instructions to the A series chips to make JS execution faster.
They can make web apps run better than other platforms. And then they can make native apps run even faster.
Both are a advantage which the competing ecosystem doesn't have.