mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 19:00:54 -04:00
fix: syntax update (#26895)
This commit is contained in:
@@ -24,8 +24,8 @@ The **block** statement is commonly used with control flow statements (e.g. `if.
|
||||
x++;
|
||||
}
|
||||
|
||||
function addnums(num1, num2) {
|
||||
var sum = 0;
|
||||
function addNums(num1, num2) {
|
||||
let sum = 0;
|
||||
sum = num1 + num2;
|
||||
return sum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user