How can I get userid by javascript?


I want to get the userid by javascript,but I can not find the relevant information.It seems to be authorized that I can get the id,but I don not how the authorize,I know nothing about twitter api,it is my first time to work on the twitter,is anyone can help me ? Thank you !!!