Serialization function for the Boolean datatype - Node.js Data Type

Node.js examples for Data Type:Serialization

Description

Serialization function for the Boolean datatype

Demo Code


/**/* w ww  .j a v a 2  s.  c  o m*/
 *  Serialization function for the Boolean datatype.
 */
Boolean.prototype.serialize = function()
{
    return '<boolean>' + this + '</boolean>';
}

Related Tutorials