Web Technology Answers
Web Technology Answers
Scripting languages like JavaScript enable dynamic, interactive, and responsive web experiences,
handling user interactions, validations, and content updates without server reloads.
JavaScript is a client-side, dynamic scripting language with features like event handling,
function checkPrime(n){ if(n <= 1) return "Not Prime"; for(let i=2;i<=Math.sqrt(n);i++){ if(n%i===0)
5. JS Functions:
Functions are blocks of reusable code. Define with 'function', pass parameters, and use 'return' to
send results.
6. JS Events:
7. JS Objects:
Window - browser window, Document - HTML content, String - text operations, Math - calculations,
Array - lists.
8. setTimeout:
10. XQuery:
XQuery supports complex queries and transformations; XPath is used for navigation only.
Use nested for with condition: for $a in doc1, $b in doc2 where $a/id = $b/id return ...
19. Ontologies:
21. URIs:
24. Applications:
26. Challenges:
30. Explainability: