Click here to Skip to main content
15,885,366 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: For loop query Pin
Suresh Madhavaraju11-Feb-19 3:20
Suresh Madhavaraju11-Feb-19 3:20 
AnswerRe: For loop query Pin
W Balboos, GHB7-Mar-19 7:18
W Balboos, GHB7-Mar-19 7:18 
QuestionDebugging Pin
Bram van Kampen26-Jan-19 14:14
Bram van Kampen26-Jan-19 14:14 
AnswerRe: Debugging Pin
Richard Deeming28-Jan-19 1:01
mveRichard Deeming28-Jan-19 1:01 
GeneralRe: Debugging Pin
Bram van Kampen28-Jan-19 11:21
Bram van Kampen28-Jan-19 11:21 
QuestionCan anyone help me understand this code? Pin
Member 1411814323-Jan-19 1:20
Member 1411814323-Jan-19 1:20 
AnswerRe: Can anyone help me understand this code? Pin
Richard Deeming23-Jan-19 7:35
mveRichard Deeming23-Jan-19 7:35 
QuestionJavaScript : TypeScript :: Python : <what> Pin
Amarnath S20-Jan-19 16:58
professionalAmarnath S20-Jan-19 16:58 
This is not a JavaScript question, but more a Python question, and since I could not find a section here to post Python questions, I am posting it in the JavaScript section. Admins - please move this question to the appropriate forum, if you feel so.

From what little I know of TypeScript, it is a superset of JavaScript which is strongly typed. So, a TypeScript program should have function arguments declared, and return types declared. Also, a TypeScript program is transpiled to JavaScript, which is then run on the browser. This is my current understanding - please correct me if this is incorrect.

Now, I am in the process of converting a Python program to C++. A Python program can just define a function and its arguments without specifying their types, and it will only bomb at run time if the input data types do not match. Is there a version/superset of Python where strict argument type checking is done, and an intermediate compilation/transpilation step is used to check data types, and errors reported, which then generate the resulting Python program. ... (A)

The difficulty I am facing in converting the Python program to C++ is: I really don't know what are the argument types, and is the return type. These are needed to be coded in the C++ program. Any pointers in this regard are welcome. ... (B)

I am writing about two different things A and B above, and A is not likely a resolution of B. However, if someone can think on the lines of A above, and work towards a solution, I feel that it would help future persons working on converting Python code to C++.
AnswerRe: JavaScript : TypeScript :: Python : <what> Pin
Richard MacCutchan20-Jan-19 21:29
mveRichard MacCutchan20-Jan-19 21:29 
QuestionInjecting an external page to a div using ajax. Pin
Member 1125974616-Jan-19 23:59
Member 1125974616-Jan-19 23:59 
AnswerRe: Injecting an external page to a div using ajax. Pin
Graham Breach17-Jan-19 0:31
Graham Breach17-Jan-19 0:31 
GeneralRe: Injecting an external page to a div using ajax. Pin
Member 1125974617-Jan-19 0:36
Member 1125974617-Jan-19 0:36 
QuestionCan someone help me reverse engineer this code and get it working as jQuery? Pin
Member 1411874515-Jan-19 4:14
Member 1411874515-Jan-19 4:14 
QuestionJavaScript Pin
Bram van Kampen11-Jan-19 13:52
Bram van Kampen11-Jan-19 13:52 
AnswerRe: JavaScript Pin
Richard MacCutchan11-Jan-19 22:50
mveRichard MacCutchan11-Jan-19 22:50 
AnswerRe: JavaScript Pin
Nathan Minier14-Jan-19 1:16
professionalNathan Minier14-Jan-19 1:16 
QuestionGet html element position on window scroll Pin
User 41802549-Jan-19 3:43
User 41802549-Jan-19 3:43 
AnswerRe: Get html element position on window scroll Pin
Richard Deeming9-Jan-19 8:12
mveRichard Deeming9-Jan-19 8:12 
QuestionFailing to call the put and post Web Api methods from the react js components Pin
simpledeveloper24-Dec-18 9:55
simpledeveloper24-Dec-18 9:55 
Questionget a function to countdown (from any number) to zero Pin
Member 1409810523-Dec-18 14:49
Member 1409810523-Dec-18 14:49 
QuestionRe: get a function to countdown (from any number) to zero Pin
Richard MacCutchan25-Dec-18 21:18
mveRichard MacCutchan25-Dec-18 21:18 
AnswerRe: get a function to countdown (from any number) to zero Pin
Bohdan Stupak9-Jan-19 19:40
professionalBohdan Stupak9-Jan-19 19:40 
Questionhow to get a js fuction to return html opening and closing tag Pin
Member 1409810522-Dec-18 17:34
Member 1409810522-Dec-18 17:34 
AnswerRe: how to get a js fuction to return html opening and closing tag Pin
Richard MacCutchan22-Dec-18 23:35
mveRichard MacCutchan22-Dec-18 23:35 
GeneralRe: how to get a js fuction to return html opening and closing tag Pin
Member 1409810523-Dec-18 14:31
Member 1409810523-Dec-18 14:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.