mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 16:01:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -37,7 +37,7 @@ callPolyfill sets the "this" context to {"a": 5}. 7 is passe
|
||||
fn = function tax(price, taxRate) {
|
||||
return `The cost of the ${this.item} is ${price * taxRate}`;
|
||||
}
|
||||
args = [{"item": "burger"}, 10, 1,1]
|
||||
args = [{"item": "burger"}, 10, 1.1]
|
||||
<strong>Output:</strong> "The cost of the burger is 11"
|
||||
<strong>Explanation:</strong> callPolyfill sets the "this" context to {"item": "burger"}. 10 and 1.1 are passed as additional arguments.
|
||||
</pre>
|
||||
|
Reference in New Issue
Block a user