EN VI

What is Javascript?

JavaScript is a dynamic computer programming language. It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side script to interact with the user and make dynamic pages. It is an interpreted programming language with object-oriented capabilities.
JavaScript is the Programming Language for the Web.
JavaScript can update and change both HTML and CSS.
JavaScript can calculate, manipulate and validate data.
Posts (1)
Questions (109)
2022-05-29 15:48:51
You can leave () out if you put everything in one line: {mylist.map((elem, index) => {elem.title})} If you want to return something, but it take several lines, then you have to use ():{mylist.map((el...
Tags: Coding Lập trình React
2022-05-30 16:57:21
you are not returning anything from maptry to change your code in this wayexport const fetchData = async () => { const response = await fetch(`https://api/`, options); const results = awai...
2024-03-09 23:00:07
Please change your code like this : import { useState } from 'react'; const text = [ "Text1", "Text2", "Text3", "Text4", "Text5" ] export default function Test3() { let [index, setIndex...
Tags: Javascript html css
2024-03-09 23:00:11
Try this one: script(type='application/ld+json'). { "@context": "https://schema.org", "@graph": [ { "@type": "WebPage", "@id": "https://www.example.io/some-page/", "url": "https://www.ex...
Tags: Javascript json syntax
2024-03-09 23:00:15
Your security rules path doesn't match the path in the app code. Here is the pattern your rules allow: match /profile/{userId}/profile-pic/{allPaths=**} { Here is the pattern in your code: `users/${...
2024-03-09 23:00:23
According to error docs it happens within any block statement Since you don't have block statement, JS fires another error. I suppose that in online editor, the code is executed by another code, so t...
2024-03-09 23:30:04
d3.json loads a file and puts it into an object (in the above case, graph). By declaring it in an object, you're skipping that step, and putting it in MYDATA. You can just directly assign graph to MYD...
Tags: Javascript json d3.js
2024-03-09 23:30:09
Loading bounding boxes from glTF without the help of any preexisting library or loader will be a bit of a programming challenge, but it can be done. You'll use the browser's JSON parser of course, an...
2024-03-10 00:00:08
You try to infer attributes of an element before it exists. You need to make sure your Javascript runs after your HTML element was created. A way to achieve this is to create a load event handler that...
Tags: Javascript html arrays
2024-03-10 02:00:07
Firstly you need to give each checkbox a value attribute, not a vale attribute. From there you can select the :checked element when the form is submit and process it as required. Also note that the fo...
Tags: Javascript html forms

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login