fjundi / javascript-module Goto Github PK
View Code? Open in Web Editor NEWJavaScript Module
JavaScript Module
But please check how to use indentation. In some places it can be improved like the "else" at the end of your file
https://github.com/fjundi/javascript/blob/876291268a6e6c0c5c89418eb0d14fa27166899d/week1hm.js#L14
This call here does nothing. The next call is what actually printed. You could either assign the result of this call to a new variable and then use that variable in console.log()
or omit it. Best practice is to assign it to new variable.
JavaScript-Module/Week 3/index.js
Line 138 in fa829b6
id attribute was not set for li
element when created.
JavaScript-Module/Week 3/index.js
Line 132 in fa829b6
In this function you ceate an img element, give it an id and then you look for an element with that id and try to add this to it!
You will need to add the img element to another element that already exists
https://github.com/fjundi/javascript/blob/876291268a6e6c0c5c89418eb0d14fa27166899d/week1hm.js#L57
var is legacy javascript. Use let
or const
instead
You almost got the unique strings except that you are missing 'cat'
https://github.com/fjundi/javascript/blob/876291268a6e6c0c5c89418eb0d14fa27166899d/homework.txt#L32
https://github.com/fjundi/javascript/blob/876291268a6e6c0c5c89418eb0d14fa27166899d/week1hm.js#L45
What this call does is printing the result of the statement call instead of printing the value of x. In this case we got the same result. As a general rule, whenever you want to print the new value, it is better to separate the statement from the printing code. So it would be like:
x = x % 3
console.log(x)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.