I need to change a value in a javascript object.
var wba_product = {
sku:'12ZB7',
availability:'Usually ships in 1-2 business days',
}
I want to change this using javascript.
<script language="javascript" type="text/javascript>
if(wba_product.sku == '12ZB7') wba_product.availability + ' Items are charged to your credit card only when they ship. Your credit card will not be charged until the item is shipped to you. ';
</script>
But this syntax is not working.