DEV Community

Cover image for Conditionally Comparing Strings in JavaScript

Conditionally Comparing Strings in JavaScript

M.Ark on May 08, 2022

Comparing two strings to see if they’re the same. Use the equality operator (==) within a conditional test: var strName = prompt("What's your na...
Collapse
 
tanvir1407 profile image
Info Comment hidden by post author - thread only accessible via permalink
MD. Tanvir

copy from JavaScript Cookbook

Some comments have been hidden by the post's author - find out more