How To Create Object By Using Javascript?

How To Create Object By Using Javascript?

I Want To Add An Object To Scene By Using Javascript.