New User - Need Guidance

Hi

I am planning to use cocos2d-x with javascript language.

var MyGameLayer = cc.Layer.extend({ 
    this.start = false;
});

MyGameLayer.prototype.initialize = function() { 
   this.start = true;
}

********************
countdown.js - (my own class - not extending any cocos)
var MyCountDown = function() {
  
}

Can i write my own functions like this?
Do i need to stick with any particular notation?
Can i get any sample to where i can learn the best practice for cocos-javascript?

Thanks for your help

There are many resources to learn.
You can check the directory in Cocos2d-x :
cocos2d-x-3.10\tests\js-tests\

You can go to my tutorial site for beginners :
http://www.gamedevcraft.com/2015/09/cross-platform-snake-game-in-javascript.html

You can go to Sonar systems youtube tutorials

Sir,

Thanks for the reply.
Those tutorials are great.

With “Sonar systems” video tutorials, i have learnt a lot of cocos functionality.
But i don’t know how to use them cleverly without repeating in many places.

I want to use swipe listener in many scenes. I have to write the same code in all the scenes.
I have asked different question sir.
(How to create separate swipe module or class?)

So it will help me in creating the app without repeating.

I see well you will have to do some porting from c++ to javascript , even if you dont know c++ its looks like easy task.
see those links :
https://github.com/SonarSystems/Cocos2d-x-Tutorial—Swipe-Gesture/blob/master/HelloWorldScene.cpp
http://discuss.cocos2d-x.org/t/swipe-gestures-demo-for-3-6/22621/8