Skip to content
Advertisement

Tag: diff

Calculate Price Depending on Season (Dates) in JavaScript

we would like to calculate seasonal prices based on Months via JavaScript. Expected Return will be array with following details. It may continue as Days from July, Days from August, Days from September trincot’s answer is pretty nice idea but not arranged for this. Is it possible to extend the code as expected array? Thank you from advance. Answer As

Get numbers of difference in two strings javascript

i have two string I want to find diff in these two string for example in this scenario it is 2 Answer I’m presuming the strings need to be compared based on the comma separations, but to be fair there isn’t enough details in the question… Split the strings by comma Apply the above function to both strings, and compare

Advertisement