3 added another version
source | link

JavaScript (ES6), 28 bytes

Takes input as a string.

s=>'ny'[s.split`n`.length&1]

Try it online!


JavaScript (ES6), 30 bytes

Takes input as an array of characters.

y=>'yn'[n=1,~~eval(y.join`^`)]

Try it online!

JavaScript (ES6), 30 bytes

y=>'yn'[n=1,~~eval(y.join`^`)]

Try it online!

JavaScript (ES6), 28 bytes

Takes input as a string.

s=>'ny'[s.split`n`.length&1]

Try it online!


JavaScript (ES6), 30 bytes

Takes input as an array of characters.

y=>'yn'[n=1,~~eval(y.join`^`)]

Try it online!

2 saved 2 bytes
source | link

JavaScript (ES6), 3230 bytes

a=>'yn'[y=0,n=1y=>'yn'[n=1,eval~~eval(ay.join`^`)]

Try it online!Try it online!

JavaScript (ES6), 32 bytes

a=>'yn'[y=0,n=1,eval(a.join`^`)]

Try it online!

JavaScript (ES6), 30 bytes

y=>'yn'[n=1,~~eval(y.join`^`)]

Try it online!

1
source | link

JavaScript (ES6), 32 bytes

a=>'yn'[y=0,n=1,eval(a.join`^`)]

Try it online!