let clockElement = document.getElementById('clock')
// Execute clock function on load
clock();
// Clock update executes on each interval set by timer
function clock() {
    let date = new Date();
    clockElement.textContent = date.toLocaleString();
}
// Clock refresh timer, a reoccurring event
setInterval(clock, 1000);
  Input In [44]
    let clockElement = document.getElementById('clock')
        ^
SyntaxError: invalid syntax
import threading  # import threading

def keepUpdating(): # build a function to run over and over
# global variable setup
    global run
    try: run
    except: run = 0

    print("Seconds:", run)  # replace this line with updates to data
    run += 1  # this is update to global variable
    threading.Timer(3.0, keepUpdating).start()

keepUpdating() 
Seconds: 130229
Seconds: 130230
Seconds: 130231
Seconds: 130232
Seconds: 130233
Seconds: 130234
Seconds: 130235
Seconds: 130236
Seconds: 130237
Seconds: 130238
Seconds: 130239
Seconds: 130240
Seconds: 130241
Seconds: 130242
Seconds: 130243
Seconds: 130244
Seconds: 130245
Seconds: 130246
Seconds: 130247
Seconds: 130248
Seconds: 130249
Seconds: 130250
Seconds: 130251
Seconds: 130252
Seconds: 130253
Seconds: 130254
Seconds: 130255
Seconds: 130256
Seconds: 130257
Seconds: 130258
Seconds: 130259
Seconds: 130260
Seconds: 130261
Seconds: 130262
Seconds: 130263
Seconds: 130264
Seconds: 130265
Seconds: 130266
Seconds: 130267
Seconds: 130268
Seconds: 130269
Seconds: 130270
Seconds: 130271
Seconds: 130272
Seconds: 130273
Seconds: 130274
Seconds: 130275
Seconds: 130276
Seconds: 130277
Seconds: 130278
Seconds: 130279
Seconds: 130280
Seconds: 130281
Seconds: 130282
Seconds: 130283
Seconds: 130284
Seconds: 130285
Seconds: 130286
Seconds: 130287
Seconds: 130288
Seconds: 130289
Seconds: 130290
Seconds: 130291
Seconds: 130292
Seconds: 130293
Seconds: 130294
Seconds: 130295
Seconds: 130296
Seconds: 130297
Seconds: 130298
Seconds: 130299
Seconds: 130300
Seconds: 130301
Seconds: 130302
Seconds: 130303
Seconds: 130304
Seconds: 130305
Seconds: 130306
Seconds: 130307
Seconds: 130308
Seconds: 130309
Seconds: 130310
Seconds: 130311
Seconds: 130312
Seconds: 130313
Seconds: 130314
Seconds: 130315
Seconds: 130316
Seconds: 130317
Seconds: 130318
Seconds: 130319
Seconds: 130320
Seconds:Seconds: 130321
 130321
Seconds: 130323
Seconds: 130324
Seconds: 130325
Seconds: 130326
Seconds: 130327
Seconds: 130328
Seconds: 130329
Seconds: 130330
Seconds:Seconds: 130331
 130331