My question is rather strange, this is due to what I saw in jQuery, but so far I have not been able to recreate it.
in jQuery you can go like this:
jQuery('div').append
or
jQuery.ajax
the application I am creating will require a similar syntax, I notice that if you use a new one, for example
var that=new function(){
}
you can only call a function with this, without (), but in some cases I will need it.
The reason for this are some functions, I need to select the dom element just like jQuery.
that('[data-something="this"]').setEvent('click',functin(){})
and some automatically do it like this:
that.loadIt('this','[data-something="that"]')
, dom , script , , . , ( javascript, )