how to add ' in javascript string

JavaScript
var aString="";
aString.concat(string2, string3, string4,......, stringN)//Below code prints It's alright.
var x = 'It\'s alright.';
Source

Also in JavaScript: