We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef7b5bd commit 6660037Copy full SHA for 6660037
maths/find_lcm.js
@@ -9,11 +9,12 @@
9
https://en.wikipedia.org/wiki/Least_common_multiple
10
*/
11
12
+"use strict";
13
+
14
// Find the LCM of two numbers.
15
function find_lcm(num_1, num_2) {
- "use strict";
- var max_num,
16
- lcm;
+ var max_num;
17
+ var lcm;
18
// Check to see whether num_1 or num_2 is larger.
19
if (num_1 > num_2) {
20
max_num = num_1;
@@ -32,6 +33,6 @@ function find_lcm(num_1, num_2) {
32
33
}
34
35
// Run `find_lcm` Function
-var num_1 = 12,
36
- num_2 = 76;
+var num_1 = 12;
37
+var num_2 = 76;
38
console.log(find_lcm(num_1, num_2));
0 commit comments