Skip to content

Commit 6660037

Browse files
authored
Made "use strict" Global & Made JSLint Happy
1 parent ef7b5bd commit 6660037

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

maths/find_lcm.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
https://en.wikipedia.org/wiki/Least_common_multiple
1010
*/
1111

12+
"use strict";
13+
1214
// Find the LCM of two numbers.
1315
function find_lcm(num_1, num_2) {
14-
"use strict";
15-
var max_num,
16-
lcm;
16+
var max_num;
17+
var lcm;
1718
// Check to see whether num_1 or num_2 is larger.
1819
if (num_1 > num_2) {
1920
max_num = num_1;
@@ -32,6 +33,6 @@ function find_lcm(num_1, num_2) {
3233
}
3334

3435
// Run `find_lcm` Function
35-
var num_1 = 12,
36-
num_2 = 76;
36+
var num_1 = 12;
37+
var num_2 = 76;
3738
console.log(find_lcm(num_1, num_2));

0 commit comments

Comments
 (0)