Embedding JavaScript Code in an HTML File

Hello Everyone, I want to know the ways of embedding JavaScript code in an HTML file. In my last interview, the recruiter asked me this question and i gave two ways to do that but they want more. Can anyone know the various ways to embedded js code in the HTML file? Can anyone also more some important topics which i will prepare myself for my facing my upcoming interviews?

1 Reply

SM Saranya Murugasamy Syncfusion Team March 30, 2020 12:46 PM UTC

Hi Ankit Dixit, 

Thank you for contacting Syncfusion support. 

In JavaScript, we can embed JS in an HTML file in ways like embedding between the script tag (inline script), from an external script file (.js), using the "javascript:" protocol. Please refer to the link below for more information. 


Please feel free to get back to us if you have any queries with our Syncfusion components. 

Regards, 
Saranya M 


Loader.
Up arrow icon