Complete the code to set a global variable named 'token' with value 'abc123'.
pm.globals.[1]('token', 'abc123');
Use pm.globals.set to create or update a global variable in Postman.
Complete the code to retrieve the value of the global variable 'token'.
const token = pm.globals.[1]('token');
Use pm.globals.get to read the value of a global variable in Postman.
Fix the error in the code to remove the global variable named 'token'.
pm.globals.[1]('token');
Use pm.globals.unset to delete a global variable in Postman.
Fill both blanks to check if the global variable 'token' exists and then remove it.
if (pm.globals.[1]('token') !== undefined) { pm.globals.[2]('token'); }
First, use get to check if the variable exists. Then use unset to remove it.
Fill all three blanks to update the global variable 'token' by appending '-updated' to its current value.
const current = pm.globals.[1]('token'); pm.globals.[2]('token', current [3] '-updated');
Use get to read the current value, set to update it, and + to concatenate strings.