Develop an algorithm and draw a flowchart to determine and input number is palindrome or not.​

Answers

Answer 1

function checkPalindrome(str){
let reversed = str.split("").reverse().join("")
return str === reversed
}
let str1 = "anna"
let str2 = "banana"
let str3 = "kayak"
checkPalindrome(str1)
// -> true
checkPalindrome(str2)
// -> false
checkPalindrome(str3)
// -> true

Related Questions

what are the main barriers to the adoption of an industry standard for internet system

Answers

Answer:

Industry experts say that although many companies find the potential of the Internet of Things very attractive, they either lack a clear value proposition for end-users or lack interoperability.

Other Questions
the graph shown below expresses a radical function that can be written in the form f(x)=a(x+k)^1/n+c. what does the graph tell you about the value of c in this function? 8. Which scenario best illustrates how the power to make treaties in the United States Constitution provides (1 point) for checks and balances among the three branches of government? The president must sign an executive agreement without the Senate, but must have approval of the House O The Senate must approve a treaty by a two-thirds vote, and its terms must be found to be constitutional by The House of Representatives must approve the treaty by a two-thirds vote, but it can be vetoed by the pre The Supreme Court must decide whether the treaty is constitutional, but Congress tan override the Court Mary Hills asks the respondents in a research study a series of open ended questions that help explain the respondents' feelings and thought on the subject of child labor. Mary Hills is conducting a __________ research. HEEEEEEEEEEEEEEEEELLLLLLLPPPPPPPPPPPPPPDNA and RNA contain nucleotides that code for what?A Carbonic AcidsB Amino AcidsC Hydrochloric Acids D Lactic Acids Identify four (4) different types of credit (purposes) warning- this is malayalamand people who doesn't know it, don't even bother to help ?key point to remember - 2. What are the challenges of wind energy that causes decrease in the electrical production? 3. Give two solutions: 1. Modification in the structure of the turbine 2. Modification in the function of the turbine.4. You must estimate the cost in each solution, and which one is more affordable and efficient for the municipality to go for.5. You must make sure that there is minimal energy loss. When Rotter began teaching at Ohio State, _____ was the director of the clinical psychology program. HELP WITH GEOMETRY HOMEWORK ASAP!!! 6457/25 using partial products Set up using the same way please. If a company had a gain of 800$ in March , but in April and May , it had a loss of $400 and 900$ respectively , how mich profit or loss did the company have in three months .Please answer quickly ,.I will mark you as brainlist ... In Hurry Plz What is the measurement of the angle shown below? Identify the wrong pair.Subject: History and Political science (History) For the lunch special at a high school cafeteria, students can get either salad or french fries as a side order. The following table shows the number of each side order for the lunch specials purchased on one day, classified by the grade of the student. You have a sealed 2 liter flask that contains nothing but water and carbon dioxide. The flask is half-filled with liquid water, has a temperature of 25c, and the overall pressure within the flask is 0. 1 atm. How many moles of co2 are in the flask? at this temperature, you may take the kh value for co2 as 0. 033 m / atm. a. Calculate the change in enthalpy when 20.0 grams of aluminum metal is heated from 298 K to 573 K at constant pressure of 1 atm. b. Calculate the change in enthalpy when 20.0 grams of metallic lead is taken through the same process. In both cases assume the heat capacity values predicted by equipartition are valid through the temperature range stated. What is the grooming process as it relates to online predators We use the keyboard to point, click, and select menus and icons, and for onscreen navigation. True or False throughout the 3.5 billion year history of life on earth there has been a natural, low rate of species extinction known as A man Buy television set at a price exclusive of sales tax for $2124 if sales tax of 12% is changed how much money does the man pay