storing a function in a class js code example Example: how to create class in javascript class ClassName { }