TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html lang="en"> <body> <pre id="output">Output : </pre> <script> var str = 'www.tutorialkart.com/'; if ( str.startsWith('http') ) { document.getElementById('output').innerHTML = 'str starts with http'; } else { document.getElementById('output').innerHTML = 'str does not start with http'; } </script> </body> </html>