Confused by documentation

In the defintion of Color4F here; Link

I see

//create a red color
var redColor = new cc.Color4F(1,0,0,1);

however when I copy that code verbatim into my code, I get the following error

JS: C:/Online/Cocos/CocosProjects/Cocos_Test_1/frameworks/runtime-src/proj.win32/../../..//src/app.js:128:TypeError: cc.Color4F is not a constructor

I am very confused.

Yes, I see that too.

var redColor3 = new cc.Color3B(1,0,0);

works.

Copied yours in place and still get

JS: Cocos2d-JS v3.10
JS: C:/Online/Cocos/CocosProjects/Cocos_Test_1/frameworks/runtime-src/proj.win32/../../..//src/app.js:128:TypeError: cc.Color3B is not a constructor

the following seems to work. Thanks

var redColor3 = new cc.Color(1, 0, 0, 1);