Build a Hardware Diagnostic Log with Vanilla JavaScript