How Can I Add a Key-Value Pair to a Java Script Object? The Problem You want to add a key-value pair to a Java Script object, how do you do this?