JSFiddle - React, Tailwind, and code Playground

by fbfcn

JavaScript

var adress = 'http://roflmao.com';
if (adress.substr(0,7) == 'http://' || adress.substr(0,8) == 'https://') {
    alert('pass');
}