Yes, there is a difference and that difference can be significant depending upon the circumstances.
frameHeight = frameHeight || 24
will assign 24 to frame if frameHeight is initially ANY falsey value such as "", 0, null, undefined, NaN or false.
Whereas:
frameHeight = frameHeight !== undefined ? frameheight : 24
will only assign it 24 if the initial value is exactly undefined.
So, of possible significance in this particular function, the second method will allow you to pass 0 for the frameHeight to set a zero height, but the first method will not because it will override that 0 to 24.
frameHeightisundefinedwhere as the second will return 24 ifframeHeighthas any "falsey" value, likenull,'', etc.if(frameHeight===undefined)frameHeight=24;IS equivalent but it is more readable and performs better since its value will only change when needed