JavaScript questions
JavaScript is a scripting or programming language that allows you to implement complex features on web pages. It is the third layer of standard web technologies ( others two are html and css). Note:- JavaScript is NOT Java.
JavaScript questions
How can I generate random number between number A and number B in javascript ?
AskedHow to get correct image coordinates from mouse click in Cornerstone.js?
I’m developing an Angular-based DICOM viewer using Cornerstone.js and I need to map mouse click positions to image-space coordinates i.e., the true pixel coordinates within the original DICOM image. Currently, the coordinates I get change when zooming or panning , which means I’m likely mixing up screen/client coordinates with Cornerstone’s internal viewport transforms.
Asked
JavaScript: frequently asked questions
Quick answers about learning JavaScript on DevBrainiac.
What is JavaScript?
JavaScript is a scripting or programming language that allows you to implement complex features on web pages. It is the third layer of standard web technologies ( others two are html and css). Note:- JavaScript is NOT Java.
Where can I ask JavaScript questions?
Ask your JavaScript question in the DevBrainiac Q&A community, where developers answer each other's questions. 2 JavaScript questions have been asked so far.
What other topics can I learn on DevBrainiac?
Popular topics on DevBrainiac include Interview Questions, C# Collection, MySQL, Database and Coding Problems.
Popular topics
- Interview QuestionsInterview Questions are structured queries asked by employers to evaluate a candidate’s technical skills, problem-solving ability, experience, communication skills and cultural fit. These questions can include HR, behavioral, technical, coding and situational topics to assess whether the candidate is suitable for the job role and organization.Explore Interview Questions
- C# CollectionIn C#, Collections are classes in the System.Collections and System.Collections.Generic namespaces that store and manage groups of related objects. They include types like List<T>, Dictionary<TKey,TValue>, Queue<T> and Stack<T>. Collections offer dynamic sizing, built-in search, sorting and iteration, making data handling efficient and flexible in C# applications.Explore C# Collection
- MySQLMySQL is an open-source relational database management system widely used for storing and managing structured data. It supports SQL for querying, updating and controlling data efficiently. Known for reliability, speed and scalability, MySQL powers web applications, enterprise systems and cloud platforms. It is commonly used with PHP, Java, Python and modern application stacks like LAMP and MERN.Explore MySQL
- DatabaseA database is an organized collection of data. It is the collection of schemas, tables, queries, reports, views, and other objects. The data are typically organized to model aspects of reality in a way that supports processes requiring information. Use this tag if you have questions about designing a database.Explore Database
- Coding ProblemsCoding problems are exercises designed to test a programmer’s ability to write logic, solve challenges and apply algorithms or data structures. They help improve problem-solving skills, logical thinking and coding efficiency. Common in interviews and competitive programming, coding problems range from simple tasks to complex algorithmic challenges, preparing developers for real-world software development scenarios.Explore Coding Problems
- QueryIn databases, a query is a request to retrieve, insert, update or delete data. Written in SQL (Structured Query Language), queries can be simple, like fetching all rows from a table, or complex, involving joins, conditions and aggregations. They are essential for interacting with and managing database information efficiently.Explore Query
- Two PointesThe two-pointer technique is an efficient algorithmic approach that uses two indexes to traverse data structures like arrays or strings. The pointers move toward each other, away from each other or in the same direction to solve problems involving searching, pair finding or window management. It reduces complexity, often turning O(n²) solutions into O(n), making it ideal for optimized problem-solving.Explore Two Pointes
- DSADSA (Data Structures and Algorithms) is a fundamental concept in computer science that focuses on efficiently storing, organizing and processing data. Data structures like arrays, linked lists, stacks and trees manage data, while algorithms provide step-by-step solutions to problems. Mastering DSA is essential for writing optimized, scalable and high-performance code.Explore DSA
- Technical InterviewTechnical Interview is a structured assessment where employers evaluate a candidate’s technical skills, problem-solving ability and practical knowledge related to a specific role. It typically includes coding challenges, system design questions, debugging tasks and discussions about past projects. The goal of a technical interview is to measure how effectively a candidate can apply their technical expertise to solve real-world problems.Explore Technical Interview
- SQLSQL stands for Structured query language. It is a programming language for storing and processing information in a relational database. It is standard language for accessing and manipulating databases.Explore SQL
Keep practising JavaScript
Test yourself with a quiz, run code in the online compiler or ask the community.