public/js/app.js
/**
   * @param {string} playlistId The unique id of the playlist object
   * @param {integer} songId The unique id of the song object
   */
@param {string} playlistId The unique id of the playlist object
@param {integer} songId The unique id of the song object
@param { string } playlistId The unique id of the playlist object @param { integer } songId The unique id of the song object
function createPlaylistSong(playlistId, songId, playlistOrder) {
    var playlistSong = {
      playlist_id: playlistId,
      song_id: songId,
      playlist_order: playlistOrder
    };
    API.create("playlistSongs", [playlistSong]).then(function (newPlaylistSongs) {
      ServerActionCreators.receiveCreatedPlaylistSongs(newPlaylistSongs);
    })["catch"](function (error) {
      console.log(error);
    });
  }
function createPlaylistSong ( playlistId , songId , playlistOrder ) { var playlistSong = { playlist_id : playlistId , song_id : songId , playlist_order : playlistOrder } ; API . create ( "playlistSongs" , [ playlistSong ] ) . then ( function ( newPlaylistSongs ) { ServerActionCreators . receiveCreatedPlaylistSongs ( newPlaylistSongs ) ; } ) [ "catch" ] ( function ( error ) { console . log ( error ) ; } ) ; }
@param {string} playlistId The unique id of the playlist object
 @param {integer} songId The unique id of the song object
@param { string } playlistId The unique id of the playlist object @param { integer } songId The unique id of the song object