f.<br />Determine the output of the following:<br />def compute(s):<br />x= [<br />for i in range(len(s))<br />a = s[i]<br />b = a upperc )<br />if a not in x and b not in x:<br />if a > 'p':<br />x.append(a.upper( ))<br />x.append(a)<br />return x<br />print(compute('abracadabra'))
Answers
Answered by
4
Since its release in December 1995 (after Java which was released in May 23, 1995), JavaScript has gone through many changes. JavaScript began as a client-side programming language (which runs inside a web browser) for adding interactive contents to the web pages. It became more robust with DHTML and AJAX. With Node.js (in 2009), JavaScript can be used to program server-side and build full-stack web applications. In 2015, the ECMAScript 6 (ES6) introduces major update to the language.
This article focus on JavaScript before Node.js and ECMAScript 6, i.e., JavaScript as a client-side programming language to provide interactibve contents to web pages. I will provide the updates in other articles.
Similar questions