I previously defined the font-weight of an element using this code snippet
$('#myid').css('font-weight', 'bold');
However, when I attempt to check the value later on
$('#myid').css('font-weight')
I receive the font-weight as an integer.
In cases where no font-weight has been explicitly set for a new element, the default value returned is 400.
Should I modify my expectation and anticipate numerical values always or should I analyze them to determine if they match the default value or if the element is actually in "bolder" font? Is there a different approach that would return the pseudo names assuming the specified font-weight matches one?