function ConstantNode(value) {
    if (!(this instanceof ConstantNode)) {
      throw new SyntaxError('Constructor must be called with the new operator');
    }

    if (arguments.length === 2) {
      // TODO: remove deprecation error some day (created 2018-01-23)
      throw new SyntaxError('new ConstantNode(valueStr, valueType) is not supported anymore since math v4.0.0. Use new ConstantNode(value) instead, where value is a non-stringified value.');
    }

    this.value = value;
  }
A ConstantNode holds a constant value like a number or string.

Usage:

    new ConstantNode(2.3)
    new ConstantNode('hello')

@param {*} value    Value can be any type (number, BigNumber, string, ...)
@constructor ConstantNode
@extends {Node}