|
| 1 | +# JavaScript-Core-Concepts |
| 2 | +This is my private repository. Becouse it has been 'JavaScript & React core concept'... |
| 3 | + |
| 4 | +# Most important syntex in JavaScript: |
| 5 | +01. Variable declearation----- (let, const); |
| 6 | +02. Condition----- (if, else); |
| 7 | +03. Array and Object----- (number, string); |
| 8 | +04. Loop----- (for-loop, while-loop); |
| 9 | +05. Function-----(normal, arrow); |
| 10 | + |
| 11 | + |
| 12 | +# Most important (Array, Object) Core methods: |
| 13 | +01. Map-----(array into object OR [{...}, {...}, {...}] ) OR Get property and return; |
| 14 | +02. Foreach-----(array into object OR [{...}, {...}, {...}] ) OR Get property and console.log; |
| 15 | +03. Filter-----(choose item, removed item); |
| 16 | +04. Find-----(find out the special array OR object properties); |
| 17 | + |
| 18 | +@ Extra JS Array Methods: |
| 19 | +---------------------------- |
| 20 | +05. reduce() |
| 21 | +06. includes() |
| 22 | +07. push() |
| 23 | +08. pop() |
| 24 | +09. length() |
| 25 | +10. indexOf() |
| 26 | + |
| 27 | +@ NOTE: |
| 28 | +----------- |
| 29 | +01. Array and Object Destructuring and (Array in Three Dots); |
| 30 | +02. JS Shortcut Ternary-----(Variable Name = Condition ? True value : False value); |
| 31 | +03. API AND JSON-----(Api-Featch, Convert-Structure = Json to Object and Object to Json = [[ console.log(JSON.stringify(objectName)) && myData = JSON.stringify(objectName)) ]]; |
| 32 | + |
| 33 | + |
| 34 | +# Fetch JSON Localstorage object keys values: (Set && get) |
| 35 | +01. Featch '03' WEB-API and create DOM website; |
| 36 | +02. Set Object/JSON Local-Storage (keys && values) = { VariableName = Object.keys(objectName) }; |
| 37 | +03. Get Object/JSON Local-Storage (keys && values) = { VariableName = Object.values(objectName) }; |
| 38 | +04. Array in Object Name = [{id: 01, name: 'theMealdb = https://www.themealdb.com/api.php', categories: 'Food Images'}, // {id: 02, name: 'pixabay = https://pixabay.com/api/docs/', categories: 'Images && Videos'}, // {id: 03, name = 'theMealdb: https://www.themealdb.com/api.php', categories: 'Name'}]; |
| 39 | + |
0 commit comments