put(name, data)

stores a variable in the local storage

Parameters

  • name - the key of the variable (optional)
    • string
  • data - the data to store
    • string, object

Returns

method doesn't return any data