str = '<div class="fc fc-ltr fc-unthemed" style=""><div class="fc-view-container"><div class="fc-view fc-dayGridMonth-view fc-dayGrid-view" style=""><table class=""><thead class="fc-head"><tr><td class="fc-head-container fc-widget-header"><div class="fc-row fc-widget-header" style="border-right-width: 1px; margin-right: 14px;"><table class=""><thead><tr><th class="fc-day-header fc-widget-header fc-sun"><span>Sun</span></th><th class="fc-day-header fc-widget-header fc-mon"><span>Mon</span></th><th class="fc-day-header fc-widget-header fc-tue"><span>Tue</span></th><th class="fc-day-header fc-widget-header fc-wed"><span>Wed</span></th><th class="fc-day-header fc-widget-header fc-thu"><span>Thu</span></th><th class="fc-day-header fc-widget-header fc-fri"><span>Fri</span></th><th class="fc-day-header fc-widget-header fc-sat"><span>Sat</span></th></tr></thead></table></div></td></tr></thead><tbody class="fc-body"><tr><td class="fc-widget-content"><div class="fc-scroller fc-day-grid-container" style="overflow: hidden scroll; height: 254.828px;"><div class="fc-day-grid"><div class="fc-row fc-week fc-widget-content"><div class="fc-bg"><table class=""><tbody><tr><td class="fc-day fc-widget-content fc-sun fc-other-month fc-past" data-date="2021-12-26"></td><td class="fc-day fc-widget-content fc-mon fc-other-month fc-past" data-date="2021-12-27"></td><td class="fc-day fc-widget-content fc-tue fc-other-month fc-past" data-date="2021-12-28"></td><td class="fc-day fc-widget-content fc-wed fc-other-month fc-past" data-date="2021-12-29"></td><td class="fc-day fc-widget-content fc-thu fc-other-month fc-past" data-date="2021-12-30"></td><td class="fc-day fc-widget-content fc-fri fc-other-month fc-past" data-date="2021-12-31"></td><td class="fc-day fc-widget-content fc-sat fc-past" data-date="2022-01-01"></td></tr></tbody></table></div><div class="fc-content-skeleton"><table><thead><tr><td class="fc-day-top fc-sun fc-other-month fc-past" data-date="2021-12-26"><span class="fc-day-number">26</span></td><td class="fc-day-top fc-mon fc-other-month fc-past" data-date="2021-12-27"><span class="fc-day-number">27</span></td><td class="fc-day-top fc-tue fc-other-month fc-past" data-date="2021-12-28"><span class="fc-day-number">28</span></td><td class="fc-day-top fc-wed fc-other-month fc-past" data-date="2021-12-29"><span class="fc-day-number">29</span></td><td class="fc-day-top fc-thu fc-other-month fc-past" data-date="2021-12-30"><span class="fc-day-number">30</span></td><td class="fc-day-top fc-fri fc-other-month fc-past" data-date="2021-12-31"><span class="fc-day-number">31</span></td><td class="fc-day-top fc-sat fc-past" data-date="2022-01-01"><span class="fc-day-number">1</span></td></tr></thead><tbody><tr><td rowspan="3"></td><td class="fc-event-container" rowspan="3"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Test Alpha One</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">OP2 SBC - Alignment with Accounting on Forfeiture Rate</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container" colspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">7P PST - GREF #3 & OpEx Allocation (SLA 12/30 11A PST)</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Day -1 DIM Update</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container" rowspan="3"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-not-end fc-draggable fc-resizable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Orphan placement process</span></div><div class="fc-resizer fc-start-resizer"></div></a></td></tr><tr><td class="fc-event-container" rowspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Q1 R&O SBC - Alignment with Accounting on Forfeiture Rate</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container" rowspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#077398;border-color:#077398" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">8a</span> <span class="fc-title">Test event</span></div></a></td><td rowspan="2"></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#8C297D;border-color:#8C297D" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Event12</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td></tr><tr><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#8C297D;border-color:#8C297D" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Event12</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td></tr></tbody></table></div></div><div class="fc-row fc-week fc-widget-content"><div class="fc-bg"><table class=""><tbody><tr><td class="fc-day fc-widget-content fc-sun fc-past" data-date="2022-01-02"></td><td class="fc-day fc-widget-content fc-mon fc-past" data-date="2022-01-03"></td><td class="fc-day fc-widget-content fc-tue fc-past" data-date="2022-01-04"></td><td class="fc-day fc-widget-content fc-wed fc-past" data-date="2022-01-05"></td><td class="fc-day fc-widget-content fc-thu fc-today " data-date="2022-01-06"></td><td class="fc-day fc-widget-content fc-fri fc-future" data-date="2022-01-07"></td><td class="fc-day fc-widget-content fc-sat fc-future" data-date="2022-01-08"></td></tr></tbody></table></div><div class="fc-content-skeleton"><table><thead><tr><td class="fc-day-top fc-sun fc-past" data-date="2022-01-02"><span class="fc-day-number">2</span></td><td class="fc-day-top fc-mon fc-past" data-date="2022-01-03"><span class="fc-day-number">3</span></td><td class="fc-day-top fc-tue fc-past" data-date="2022-01-04"><span class="fc-day-number">4</span></td><td class="fc-day-top fc-wed fc-past" data-date="2022-01-05"><span class="fc-day-number">5</span></td><td class="fc-day-top fc-thu fc-today " data-date="2022-01-06"><span class="fc-day-number">6</span></td><td class="fc-day-top fc-fri fc-future" data-date="2022-01-07"><span class="fc-day-number">7</span></td><td class="fc-day-top fc-sat fc-future" data-date="2022-01-08"><span class="fc-day-number">8</span></td></tr></thead><tbody><tr><td class="fc-event-container" colspan="4"><a class="fc-day-grid-event fc-h-event fc-event fc-not-start fc-end fc-draggable fc-resizable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Orphan placement process</span></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container" colspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">7P PST - GREF & OpEx Allocation (SLA 1/7 11A PST)</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td rowspan="4"></td></tr><tr><td rowspan="3"></td><td rowspan="3"></td><td rowspan="3"></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">12:30a</span> <span class="fc-title">Reorg Tracker UI (HCTR UI) will close for new entries</span></div></a></td><td class="fc-event-container" rowspan="3"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Q1 Guid / OP2 First Pass</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">1:15a</span> <span class="fc-title">12p OP2 SBC Plan Lock</span></div></a></td></tr><tr><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">5:15a</span> <span class="fc-title">Q1 R&O SBC Manual Adjustments due to Corp FP&A</span></div></a></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">1:15a</span> <span class="fc-title">12p Q1 R&O SBC Plan Lock</span></div></a></td></tr><tr><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">6:15a</span> <span class="fc-title">OP2 SBC Manual Adjustments due to Corp FP&A</span></div></a></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">12:15p</span> <span class="fc-title">Reorg Tracker UI Approvals Due</span></div></a></td></tr></tbody></table></div></div><div class="fc-row fc-week fc-widget-content"><div class="fc-bg"><table class=""><tbody><tr><td class="fc-day fc-widget-content fc-sun fc-future" data-date="2022-01-09"></td><td class="fc-day fc-widget-content fc-mon fc-future" data-date="2022-01-10"></td><td class="fc-day fc-widget-content fc-tue fc-future" data-date="2022-01-11"></td><td class="fc-day fc-widget-content fc-wed fc-future" data-date="2022-01-12"></td><td class="fc-day fc-widget-content fc-thu fc-future" data-date="2022-01-13"></td><td class="fc-day fc-widget-content fc-fri fc-future" data-date="2022-01-14"></td><td class="fc-day fc-widget-content fc-sat fc-future" data-date="2022-01-15"></td></tr></tbody></table></div><div class="fc-content-skeleton"><table><thead><tr><td class="fc-day-top fc-sun fc-future" data-date="2022-01-09"><span class="fc-day-number">9</span></td><td class="fc-day-top fc-mon fc-future" data-date="2022-01-10"><span class="fc-day-number">10</span></td><td class="fc-day-top fc-tue fc-future" data-date="2022-01-11"><span class="fc-day-number">11</span></td><td class="fc-day-top fc-wed fc-future" data-date="2022-01-12"><span class="fc-day-number">12</span></td><td class="fc-day-top fc-thu fc-future" data-date="2022-01-13"><span class="fc-day-number">13</span></td><td class="fc-day-top fc-fri fc-future" data-date="2022-01-14"><span class="fc-day-number">14</span></td><td class="fc-day-top fc-sat fc-future" data-date="2022-01-15"><span class="fc-day-number">15</span></td></tr></thead><tbody><tr><td rowspan="4"></td><td class="fc-event-container" rowspan="4"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">4:30a</span> <span class="fc-title">Actuals Supplemental Pages Due from Page Providers</span></div></a></td><td class="fc-event-container" rowspan="4"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">11:30p</span> <span class="fc-title">Reorg Tracker UI will reopen for new entries</span></div></a></td><td class="fc-event-container" colspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">7P PST - OpEx Allocation (SLA 1/13 11A PST)</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container" colspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-not-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">5P PST - OpEx Allocation (SLA 1/18 8A PST)</span></div><div class="fc-resizer fc-start-resizer"></div></a></td></tr><tr><td rowspan="3"></td><td rowspan="3"></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">5P PST OP2 2022 System Lock</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td rowspan="3"></td></tr><tr><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">5P PST Q1 Guid System Lock</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td></tr><tr><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-time">12:30a</span> <span class="fc-title">Actuals Rollover in Corp_Reporting</span></div></a></td></tr></tbody></table></div></div><div class="fc-row fc-week fc-widget-content"><div class="fc-bg"><table class=""><tbody><tr><td class="fc-day fc-widget-content fc-sun fc-future" data-date="2022-01-16"></td><td class="fc-day fc-widget-content fc-mon fc-future" data-date="2022-01-17"></td><td class="fc-day fc-widget-content fc-tue fc-future" data-date="2022-01-18"></td><td class="fc-day fc-widget-content fc-wed fc-future" data-date="2022-01-19"></td><td class="fc-day fc-widget-content fc-thu fc-future" data-date="2022-01-20"></td><td class="fc-day fc-widget-content fc-fri fc-future" data-date="2022-01-21"></td><td class="fc-day fc-widget-content fc-sat fc-future" data-date="2022-01-22"></td></tr></tbody></table></div><div class="fc-content-skeleton"><table><thead><tr><td class="fc-day-top fc-sun fc-future" data-date="2022-01-16"><span class="fc-day-number">16</span></td><td class="fc-day-top fc-mon fc-future" data-date="2022-01-17"><span class="fc-day-number">17</span></td><td class="fc-day-top fc-tue fc-future" data-date="2022-01-18"><span class="fc-day-number">18</span></td><td class="fc-day-top fc-wed fc-future" data-date="2022-01-19"><span class="fc-day-number">19</span></td><td class="fc-day-top fc-thu fc-future" data-date="2022-01-20"><span class="fc-day-number">20</span></td><td class="fc-day-top fc-fri fc-future" data-date="2022-01-21"><span class="fc-day-number">21</span></td><td class="fc-day-top fc-sat fc-future" data-date="2022-01-22"><span class="fc-day-number">22</span></td></tr></thead><tbody><tr><td class="fc-event-container" colspan="3"><a class="fc-day-grid-event fc-h-event fc-event fc-not-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">5P PST - OpEx Allocation (SLA 1/18 8A PST)</span></div><div class="fc-resizer fc-end-resizer"></div></a></td><td></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Q1 Guid Brian Mtg #1</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td></td><td></td></tr></tbody></table></div></div><div class="fc-row fc-week fc-widget-content"><div class="fc-bg"><table class=""><tbody><tr><td class="fc-day fc-widget-content fc-sun fc-future" data-date="2022-01-23"></td><td class="fc-day fc-widget-content fc-mon fc-future" data-date="2022-01-24"></td><td class="fc-day fc-widget-content fc-tue fc-future" data-date="2022-01-25"></td><td class="fc-day fc-widget-content fc-wed fc-future" data-date="2022-01-26"></td><td class="fc-day fc-widget-content fc-thu fc-future" data-date="2022-01-27"></td><td class="fc-day fc-widget-content fc-fri fc-future" data-date="2022-01-28"></td><td class="fc-day fc-widget-content fc-sat fc-future" data-date="2022-01-29"></td></tr></tbody></table></div><div class="fc-content-skeleton"><table><thead><tr><td class="fc-day-top fc-sun fc-future" data-date="2022-01-23"><span class="fc-day-number">23</span></td><td class="fc-day-top fc-mon fc-future" data-date="2022-01-24"><span class="fc-day-number">24</span></td><td class="fc-day-top fc-tue fc-future" data-date="2022-01-25"><span class="fc-day-number">25</span></td><td class="fc-day-top fc-wed fc-future" data-date="2022-01-26"><span class="fc-day-number">26</span></td><td class="fc-day-top fc-thu fc-future" data-date="2022-01-27"><span class="fc-day-number">27</span></td><td class="fc-day-top fc-fri fc-future" data-date="2022-01-28"><span class="fc-day-number">28</span></td><td class="fc-day-top fc-sat fc-future" data-date="2022-01-29"><span class="fc-day-number">29</span></td></tr></thead><tbody><tr><td rowspan="2"></td><td rowspan="2"></td><td rowspan="2"></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Q1 Guid Brian Mtg #2</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">OP2 2022 Brian Mtg #1</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td rowspan="2"></td><td rowspan="2"></td></tr><tr><td class="fc-event-container" colspan="2"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#E31F64;border-color:#E31F64" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Q1 Guid Snapshot</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td></tr></tbody></table></div></div><div class="fc-row fc-week fc-widget-content"><div class="fc-bg"><table class=""><tbody><tr><td class="fc-day fc-widget-content fc-sun fc-future" data-date="2022-01-30"></td><td class="fc-day fc-widget-content fc-mon fc-future" data-date="2022-01-31"></td><td class="fc-day fc-widget-content fc-tue fc-other-month fc-future" data-date="2022-02-01"></td><td class="fc-day fc-widget-content fc-wed fc-other-month fc-future" data-date="2022-02-02"></td><td class="fc-day fc-widget-content fc-thu fc-other-month fc-future" data-date="2022-02-03"></td><td class="fc-day fc-widget-content fc-fri fc-other-month fc-future" data-date="2022-02-04"></td><td class="fc-day fc-widget-content fc-sat fc-other-month fc-future" data-date="2022-02-05"></td></tr></tbody></table></div><div class="fc-content-skeleton"><table><thead><tr><td class="fc-day-top fc-sun fc-future" data-date="2022-01-30"><span class="fc-day-number">30</span></td><td class="fc-day-top fc-mon fc-future" data-date="2022-01-31"><span class="fc-day-number">31</span></td><td class="fc-day-top fc-tue fc-other-month fc-future" data-date="2022-02-01"><span class="fc-day-number">1</span></td><td class="fc-day-top fc-wed fc-other-month fc-future" data-date="2022-02-02"><span class="fc-day-number">2</span></td><td class="fc-day-top fc-thu fc-other-month fc-future" data-date="2022-02-03"><span class="fc-day-number">3</span></td><td class="fc-day-top fc-fri fc-other-month fc-future" data-date="2022-02-04"><span class="fc-day-number">4</span></td><td class="fc-day-top fc-sat fc-other-month fc-future" data-date="2022-02-05"><span class="fc-day-number">5</span></td></tr></thead><tbody><tr><td></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#98C91E;border-color:#98C91E" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">Day -1 DIM Update</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td></td><td></td><td></td><td class="fc-event-container"><a class="fc-day-grid-event fc-h-event fc-event fc-start fc-end fc-draggable fc-resizable" style="background-color:#6ED9EA;border-color:#FFFFFF" aria-expanded="false"><div class="fc-content">[CORP] <span class="fc-title">OP2 2022 Brian Mtg #2</span></div><div class="fc-resizer fc-start-resizer"></div><div class="fc-resizer fc-end-resizer"></div></a></td><td></td></tr></tbody></table></div></div></div></div></td></tr></tbody></table></div></div></div>' console.log(str)
Write, Run & Share Javascript code online using OneCompiler's JS online compiler for free. It's one of the robust, feature-rich online compilers for Javascript language. Getting started with the OneCompiler's Javascript editor is easy and fast. The editor shows sample boilerplate code when you choose language as Javascript and start coding.
Javascript(JS) is a object-oriented programming language which adhere to ECMA Script Standards. Javascript is required to design the behaviour of the web pages.
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
rl.on('line', function(line){
console.log("Hello, " + line);
});
Keyword | Description | Scope |
---|---|---|
var | Var is used to declare variables(old way of declaring variables) | Function or global scope |
let | let is also used to declare variables(new way) | Global or block Scope |
const | const is used to declare const values. Once the value is assigned, it can not be modified | Global or block Scope |
let greetings = `Hello ${name}`
const msg = `
hello
world!
`
An array is a collection of items or values.
let arrayName = [value1, value2,..etc];
// or
let arrayName = new Array("value1","value2",..etc);
let mobiles = ["iPhone", "Samsung", "Pixel"];
// accessing an array
console.log(mobiles[0]);
// changing an array element
mobiles[3] = "Nokia";
Arrow Functions helps developers to write code in concise way, it’s introduced in ES6.
Arrow functions can be written in multiple ways. Below are couple of ways to use arrow function but it can be written in many other ways as well.
() => expression
const numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
const squaresOfEvenNumbers = numbers.filter(ele => ele % 2 == 0)
.map(ele => ele ** 2);
console.log(squaresOfEvenNumbers);
let [firstName, lastName] = ['Foo', 'Bar']
let {firstName, lastName} = {
firstName: 'Foo',
lastName: 'Bar'
}
const {
title,
firstName,
lastName,
...rest
} = record;
//Object spread
const post = {
...options,
type: "new"
}
//array spread
const users = [
...adminUsers,
...normalUsers
]
function greetings({ name = 'Foo' } = {}) { //Defaulting name to Foo
console.log(`Hello ${name}!`);
}
greet() // Hello Foo
greet({ name: 'Bar' }) // Hi Bar
IF is used to execute a block of code based on a condition.
if(condition){
// code
}
Else part is used to execute the block of code when the condition fails.
if(condition){
// code
} else {
// code
}
Switch is used to replace nested If-Else statements.
switch(condition){
case 'value1' :
//code
[break;]
case 'value2' :
//code
[break;]
.......
default :
//code
[break;]
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while (condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
ES6 introduced classes along with OOPS concepts in JS. Class is similar to a function which you can think like kind of template which will get called when ever you initialize class.
class className {
constructor() { ... } //Mandatory Class method
method1() { ... }
method2() { ... }
...
}
class Mobile {
constructor(model) {
this.name = model;
}
}
mbl = new Mobile("iPhone");