Complete the code to add a member with a score to a sorted set.
ZADD myset 10 [1]
The ZADD command syntax is ZADD key score member. Here, member is the name of the member to add.
Complete the code to add a member with score 15 to the sorted set named 'players'.
ZADD players 15 [1]
The command requires the member name after the score. Here, player1 is the member being added.
Fix the error in the command to add member 'user42' with score 20 to 'ranking'.
ZADD ranking 20 [1]
The member name must be a string representing the member to add. Here, user42 is correct.
Fill both blanks to add member 'alice' with score 30 to the sorted set 'users'.
ZADD [1] [2] alice
The ZADD command syntax is ZADD key score member. The first blank is the key name users. The second blank is the score 30.
Fill all three blanks to add member 'bob' with score 25 to the sorted set 'leaders'.
ZADD [1] [2] [3]
The correct syntax is ZADD key score member. Here, leaders is the key, 25 is the score, and bob is the member.