I'm working with a javascript function called create(tagName, options)
, where the options variable is in JSON format. Here's an example structure:
{id: 'test_id', class: 'test_class'}
My question is about how to extract the 'id/class' part from this JSON object. Can someone please help me figure this out?