String searching in JavaScript

includesstartsWithendsWithindexOflastIndexOf
Задание 1

Given a string. Check if this string starts with 'http://'.

Задание 2

Given a string. Check if this string ends with '.html'.