11
স্ল্যাশ অনুসরণ না করে স্ট্রিংটি ফিরুন
আমার দুটি পরিবর্তনশীল রয়েছে: site1 = "www.somesite.com"; site2 = "www.somesite.com/"; আমি এরকম কিছু করতে চাই function someFunction(site) { // If the var has a trailing slash (like site2), // remove it and return the site without the trailing slash return no_trailing_slash_url; } আমি এটা কিভাবে করবো?