In the context of a function call, the comma is used to separate parameters from each other. So what you're doing is passing a second parameter to alert()
which gets silently ignored.
What you want is possible this way:
alert((1,2));
The extra brackets form a parameter on their own; inside them you can use the comma as an operator.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…