Skip to content

Commit be4a420

Browse files
superbrjnegonSchiele
authored andcommitted
add lost semicolons (egonSchiele#89)
1 parent 3e887a6 commit be4a420

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

07_dijkstras_algorithm/javascript/01_dijkstras_algorithm.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
'use strict';
22

33
// the graph
4-
const graph = {}
5-
graph["start"] = {}
6-
graph["start"]["a"] = 6
7-
graph["start"]["b"] = 2
4+
const graph = {};
5+
graph["start"] = {};
6+
graph["start"]["a"] = 6;
7+
graph["start"]["b"] = 2;
88

9-
graph["a"] = {}
10-
graph["a"]["fin"] = 1
9+
graph["a"] = {};
10+
graph["a"]["fin"] = 1;
1111

12-
graph["b"] = {}
13-
graph["b"]["a"] = 3
14-
graph["b"]["fin"] = 5
12+
graph["b"] = {};
13+
graph["b"]["a"] = 3;
14+
graph["b"]["fin"] = 5;
1515

16-
graph["fin"] = {}
16+
graph["fin"] = {};
1717

1818
// The costs table
1919
const costs = {};
20-
costs['a'] = 6
20+
costs['a'] = 6;
2121
costs['b'] = 2;
2222
costs['fin'] = Infinity;
2323

0 commit comments

Comments
 (0)