Thank you for your prompt response kenburcham,
Actually I researched a lot and I've noticed that my problem is not to be a programmer javascript API. My main problem is to establish my data model. Maybe not make it clear, I have currently shapefiles and each in a different coordinate system. then what I want is to establish a data model and then make my queries in javascript. I know I use FEATURE DATASET, FEATURECLASS, ETC, but I've never modeled geographic data and not know it.
Thank you very much.