Skip to main content

dessert

flavor​

Description​

Method that generate a random dessert flavor.

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.dessert.flavor());
    1. result
    'Cake'

topping​

Description​

Method that generate a random dessert topping.

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.dessert.topping());
    1. result
    'Toffee Bits'

variety​

Description​

Method that generate a random dessert variety.

Parameters​

NameTypeDescription
N/AN/AThis method doesn't receive any parameters

Returns​

  • <String>

Usage​

  1. Without passing parameters
    1. code
    console.log(pure.dessert.variety());
    1. result
    'Chocolate Chip Cookie Dough'