I found syntax in javascript that I had never seen before, and I could not find the correct documentation.
This is from the tutorial:
var connection = new [webkit|moz]RTCPeerConnection(...)
I can find for myself what webkit means and what moz means, presumably these are two specific constants or enumerations.
but my question is:
What does the [webkit|moz] syntax in square brackets mean?
Is there any type of casting result to the result of a function?
And what does the symbol | in [webkit|moz] is the OR operator?
THX
source share