From a48ec89295694d14c601da3929f4875137dcbdd4 Mon Sep 17 00:00:00 2001 From: Yasholo Date: Sat, 26 Aug 2023 22:31:43 +0530 Subject: [PATCH] deleted Basic Javascript folder --- Basic JavaScript/.DS_Store | Bin 18436 -> 0 bytes .../001-CommentYourJavaScriptCode.js | 4 -- .../002-DeclareJavaScriptVariables.js | 5 -- ...-StoringValueswiththeAssignmentOperator.js | 4 -- ...AssigningtheValueofOneVariabletoAnother.js | 6 --- ...izingVariableswiththeAssignmentOperator.js | 1 - ...006-UnderstandingUninitializedVariables.js | 11 ----- ...UnderstandingCaseSensitivityinVariables.js | 9 ---- .../008-AddTwoNumberswithJavaScript.js | 1 - ...tractOneNumberfromAnotherwithJavaScript.js | 1 - .../010-MultiplyTwoNumberswithJavaScript.js | 1 - ...-DivideOneNumberbyAnotherwithJavaScript.js | 1 - .../012-IncrementaNumberwithJavaScript.js | 4 -- .../013-DecrementaNumberwithJavaScript.js | 4 -- .../014-CreateDecimalNumberswithJavaScript.js | 4 -- .../015-MultiplyTwoDecimalswithJavaScript.js | 1 - ...DivideOneDecimalbyAnotherwithJavaScript.js | 1 - .../017-FindingaRemainderinJavaScript.js | 4 -- ...CompoundAssignmentWithAugmentedAddition.js | 8 ---- ...poundAssignmentWithAugmentedSubtraction.js | 8 ---- ...ndAssignmentWithAugmentedMultiplication.js | 8 ---- ...CompoundAssignmentWithAugmentedDivision.js | 8 ---- .../022-DeclareStringVariables.js | 2 - .../023-EscapingLiteralQuotesinStrings.js | 1 - .../024-QuotingStringswithSingleQuotes.js | 1 - .../025-EscapeSequencesinStrings.js | 1 - ...26-ConcatenatingStringswithPlusOperator.js | 1 - ...enatingStringswiththePlusEqualsOperator.js | 4 -- .../028-ConstructingStringswithVariables.js | 3 -- .../029-AppendingVariablestoStrings.js | 5 -- .../030-FindtheLengthofaString.js | 7 --- ...otationtoFindtheFirstCharacterinaString.js | 6 --- .../032-UnderstandStringImmutability.js | 6 --- ...tNotationtoFindtheNthCharacterinaString.js | 5 -- ...NotationtoFindtheLastCharacterinaString.js | 5 -- ...ntoFindtheNth-to-LastCharacterinaString.js | 5 -- Basic JavaScript/036-WordBlanks.js | 8 ---- ...aluesinoneVariableusingJavaScriptArrays.js | 2 - .../038-NestoneArraywithinAnotherArray.js | 2 - .../039-AccessArrayDatawithIndexes.js | 2 - .../040-ModifyArrayDataWithIndexes.js | 4 -- ...ccessMulti-DimensionalArraysWithIndexes.js | 3 -- .../042-ManipulateArraysWithpush().js | 5 -- .../043-ManipulateArraysWithpop().js | 5 -- .../044-ManipulateArraysWithshift().js | 5 -- .../045-ManipulateArraysWithunshift().js | 5 -- Basic JavaScript/046-ShoppingList.js | 1 - ...47-WriteReusableJavaScriptwithFunctions.js | 4 -- ...8-PassingValuestoFunctionswithArguments.js | 5 -- .../049-GlobalScopeandFunctions.js | 21 -------- .../050-LocalScopeandFunctions.js | 11 ----- .../051-Globalvs.LocalScopeinFunctions.js | 13 ----- ...052-ReturnaValuefromaFunctionwithReturn.js | 6 --- ...dingUndefinedValuereturnedfromaFunction.js | 16 ------- .../054-AssignmentwithaReturnedValue.js | 9 ---- Basic JavaScript/055-StandinLine.js | 13 ----- .../056-UnderstandingBooleanValues.js | 8 ---- ...057-UseConditionalLogicwithIfStatements.js | 7 --- .../058-ComparisonwiththeEqualityOperator.js | 8 ---- ...ComparisonwiththeStrictEqualityOperator.js | 8 ---- .../060-Practicecomparingdifferentvalues.js | 9 ---- ...061-ComparisonwiththeInequalityOperator.js | 9 ---- ...mparisonwiththeStrictInequalityOperator.js | 9 ---- ...63-ComparisonwiththeGreaterThanOperator.js | 10 ---- ...isonwiththeGreaterThanOrEqualToOperator.js | 11 ----- .../065-ComparisonwiththeLessThanOperator.js | 11 ----- ...parisonwiththeLessThanOrEqualToOperator.js | 11 ----- ...67-ComparisonswiththeLogicalAndOperator.js | 10 ---- ...068-ComparisonswiththeLogicalOrOperator.js | 10 ---- .../069-IntroducingElseStatements.js | 14 ------ .../070-IntroducingElseIfStatements.js | 13 ----- .../071-LogicalOrderinIfElseStatements.js | 11 ----- .../072-ChainingIfElseStatements.js | 17 ------- Basic JavaScript/073-GolfCode.js | 21 -------- ...tingfromManyOptionswithSwitchStatements.js | 19 -------- ...-AddingaDefaultOptioninSwitchStatements.js | 18 ------- ...tipleIdenticalOptionsinSwitchStatements.js | 22 --------- .../077-ReplacingIfElseChainswithSwitch.js | 25 ---------- ...078-ReturningBooleanValuesfromFunctions.js | 5 -- .../079-ReturnEarlyPatternforFunctions.js | 10 ---- Basic JavaScript/080-CountingCards.js | 28 ----------- .../081-BuildJavaScriptObjects.js | 8 ---- ...ccessingObjectPropertieswithDotNotation.js | 11 ----- ...singObjectPropertieswithBracketNotation.js | 11 ----- ...-AccessingObjectPropertieswithVariables.js | 9 ---- .../085-UpdatingObjectProperties.js | 10 ---- ...086-AddNewPropertiestoaJavaScriptObject.js | 8 ---- ...7-DeletePropertiesfromaJavaScriptObject.js | 10 ---- .../088-UsingObjectsforLookups.js | 18 ------- .../089-TestingObjectsforProperties.js | 9 ---- .../090-ManipulatingComplexObjects.js | 23 --------- .../091-AccessingNestedObjects.js | 12 ----- Basic JavaScript/092-AccessingNestedArrays.js | 20 -------- Basic JavaScript/093-RecordCollection.js | 36 -------------- .../094-IteratewithJavaScriptWhileLoops.js | 8 ---- .../095-IteratewithJavaScriptForLoops.js | 6 --- .../096-IterateOddNumbersWithaForLoop.js | 6 --- .../097-CountBackwardsWithaForLoop.js | 6 --- .../098-IterateThroughanArraywithaForLoop.js | 7 --- Basic JavaScript/099-NestingForLoops.js | 12 ----- ...00-IteratewithJavaScriptDo...WhileLoops.js | 8 ---- .../101-ReplaceLoopsusingRecursion.js | 10 ---- Basic JavaScript/102-ProfileLookup.js | 45 ------------------ ...3-GenerateRandomFractionswithJavaScript.js | 5 -- ...enerateRandomWholeNumberswithJavaScript.js | 4 -- ...-GenerateRandomWholeNumberswithinaRange.js | 5 -- .../106-UsetheparseIntFunction.js | 5 -- .../107-UsetheparseIntFunctionwithaRadix.js | 5 -- .../108-UsetheConditional(Ternary)Operator.js | 5 -- .../109-UsetheConditional(Ternary)Operator.js | 5 -- .../110-UseRecursiontoCreateaCountdown.js | 12 ----- ...111-UseRecursiontoCreateaRangeofNumbers.js | 10 ---- ...areaReadOnlyVariablewiththeconstKeyword.js | 5 -- ...eDifferencesBetweenthevarandletKeywords.js | 2 - Basic JavaScript/rename.sh | 24 ---------- 115 files changed, 990 deletions(-) delete mode 100644 Basic JavaScript/.DS_Store delete mode 100644 Basic JavaScript/001-CommentYourJavaScriptCode.js delete mode 100644 Basic JavaScript/002-DeclareJavaScriptVariables.js delete mode 100644 Basic JavaScript/003-StoringValueswiththeAssignmentOperator.js delete mode 100644 Basic JavaScript/004-AssigningtheValueofOneVariabletoAnother.js delete mode 100644 Basic JavaScript/005-InitializingVariableswiththeAssignmentOperator.js delete mode 100644 Basic JavaScript/006-UnderstandingUninitializedVariables.js delete mode 100644 Basic JavaScript/007-UnderstandingCaseSensitivityinVariables.js delete mode 100644 Basic JavaScript/008-AddTwoNumberswithJavaScript.js delete mode 100644 Basic JavaScript/009-SubtractOneNumberfromAnotherwithJavaScript.js delete mode 100644 Basic JavaScript/010-MultiplyTwoNumberswithJavaScript.js delete mode 100644 Basic JavaScript/011-DivideOneNumberbyAnotherwithJavaScript.js delete mode 100644 Basic JavaScript/012-IncrementaNumberwithJavaScript.js delete mode 100644 Basic JavaScript/013-DecrementaNumberwithJavaScript.js delete mode 100644 Basic JavaScript/014-CreateDecimalNumberswithJavaScript.js delete mode 100644 Basic JavaScript/015-MultiplyTwoDecimalswithJavaScript.js delete mode 100644 Basic JavaScript/016-DivideOneDecimalbyAnotherwithJavaScript.js delete mode 100644 Basic JavaScript/017-FindingaRemainderinJavaScript.js delete mode 100644 Basic JavaScript/018-CompoundAssignmentWithAugmentedAddition.js delete mode 100644 Basic JavaScript/019-CompoundAssignmentWithAugmentedSubtraction.js delete mode 100644 Basic JavaScript/020-CompoundAssignmentWithAugmentedMultiplication.js delete mode 100644 Basic JavaScript/021-CompoundAssignmentWithAugmentedDivision.js delete mode 100644 Basic JavaScript/022-DeclareStringVariables.js delete mode 100644 Basic JavaScript/023-EscapingLiteralQuotesinStrings.js delete mode 100644 Basic JavaScript/024-QuotingStringswithSingleQuotes.js delete mode 100644 Basic JavaScript/025-EscapeSequencesinStrings.js delete mode 100644 Basic JavaScript/026-ConcatenatingStringswithPlusOperator.js delete mode 100644 Basic JavaScript/027-ConcatenatingStringswiththePlusEqualsOperator.js delete mode 100644 Basic JavaScript/028-ConstructingStringswithVariables.js delete mode 100644 Basic JavaScript/029-AppendingVariablestoStrings.js delete mode 100644 Basic JavaScript/030-FindtheLengthofaString.js delete mode 100644 Basic JavaScript/031-UseBracketNotationtoFindtheFirstCharacterinaString.js delete mode 100644 Basic JavaScript/032-UnderstandStringImmutability.js delete mode 100644 Basic JavaScript/033-UseBracketNotationtoFindtheNthCharacterinaString.js delete mode 100644 Basic JavaScript/034-UseBracketNotationtoFindtheLastCharacterinaString.js delete mode 100644 Basic JavaScript/035-UseBracketNotationtoFindtheNth-to-LastCharacterinaString.js delete mode 100644 Basic JavaScript/036-WordBlanks.js delete mode 100644 Basic JavaScript/037-StoreMultipleValuesinoneVariableusingJavaScriptArrays.js delete mode 100644 Basic JavaScript/038-NestoneArraywithinAnotherArray.js delete mode 100644 Basic JavaScript/039-AccessArrayDatawithIndexes.js delete mode 100644 Basic JavaScript/040-ModifyArrayDataWithIndexes.js delete mode 100644 Basic JavaScript/041-AccessMulti-DimensionalArraysWithIndexes.js delete mode 100644 Basic JavaScript/042-ManipulateArraysWithpush().js delete mode 100644 Basic JavaScript/043-ManipulateArraysWithpop().js delete mode 100644 Basic JavaScript/044-ManipulateArraysWithshift().js delete mode 100644 Basic JavaScript/045-ManipulateArraysWithunshift().js delete mode 100644 Basic JavaScript/046-ShoppingList.js delete mode 100644 Basic JavaScript/047-WriteReusableJavaScriptwithFunctions.js delete mode 100644 Basic JavaScript/048-PassingValuestoFunctionswithArguments.js delete mode 100644 Basic JavaScript/049-GlobalScopeandFunctions.js delete mode 100644 Basic JavaScript/050-LocalScopeandFunctions.js delete mode 100644 Basic JavaScript/051-Globalvs.LocalScopeinFunctions.js delete mode 100644 Basic JavaScript/052-ReturnaValuefromaFunctionwithReturn.js delete mode 100644 Basic JavaScript/053-UnderstandingUndefinedValuereturnedfromaFunction.js delete mode 100644 Basic JavaScript/054-AssignmentwithaReturnedValue.js delete mode 100644 Basic JavaScript/055-StandinLine.js delete mode 100644 Basic JavaScript/056-UnderstandingBooleanValues.js delete mode 100644 Basic JavaScript/057-UseConditionalLogicwithIfStatements.js delete mode 100644 Basic JavaScript/058-ComparisonwiththeEqualityOperator.js delete mode 100644 Basic JavaScript/059-ComparisonwiththeStrictEqualityOperator.js delete mode 100644 Basic JavaScript/060-Practicecomparingdifferentvalues.js delete mode 100644 Basic JavaScript/061-ComparisonwiththeInequalityOperator.js delete mode 100644 Basic JavaScript/062-ComparisonwiththeStrictInequalityOperator.js delete mode 100644 Basic JavaScript/063-ComparisonwiththeGreaterThanOperator.js delete mode 100644 Basic JavaScript/064-ComparisonwiththeGreaterThanOrEqualToOperator.js delete mode 100644 Basic JavaScript/065-ComparisonwiththeLessThanOperator.js delete mode 100644 Basic JavaScript/066-ComparisonwiththeLessThanOrEqualToOperator.js delete mode 100644 Basic JavaScript/067-ComparisonswiththeLogicalAndOperator.js delete mode 100644 Basic JavaScript/068-ComparisonswiththeLogicalOrOperator.js delete mode 100644 Basic JavaScript/069-IntroducingElseStatements.js delete mode 100644 Basic JavaScript/070-IntroducingElseIfStatements.js delete mode 100644 Basic JavaScript/071-LogicalOrderinIfElseStatements.js delete mode 100644 Basic JavaScript/072-ChainingIfElseStatements.js delete mode 100644 Basic JavaScript/073-GolfCode.js delete mode 100644 Basic JavaScript/074-SelectingfromManyOptionswithSwitchStatements.js delete mode 100644 Basic JavaScript/075-AddingaDefaultOptioninSwitchStatements.js delete mode 100644 Basic JavaScript/076-MultipleIdenticalOptionsinSwitchStatements.js delete mode 100644 Basic JavaScript/077-ReplacingIfElseChainswithSwitch.js delete mode 100644 Basic JavaScript/078-ReturningBooleanValuesfromFunctions.js delete mode 100644 Basic JavaScript/079-ReturnEarlyPatternforFunctions.js delete mode 100644 Basic JavaScript/080-CountingCards.js delete mode 100644 Basic JavaScript/081-BuildJavaScriptObjects.js delete mode 100644 Basic JavaScript/082-AccessingObjectPropertieswithDotNotation.js delete mode 100644 Basic JavaScript/083-AccessingObjectPropertieswithBracketNotation.js delete mode 100644 Basic JavaScript/084-AccessingObjectPropertieswithVariables.js delete mode 100644 Basic JavaScript/085-UpdatingObjectProperties.js delete mode 100644 Basic JavaScript/086-AddNewPropertiestoaJavaScriptObject.js delete mode 100644 Basic JavaScript/087-DeletePropertiesfromaJavaScriptObject.js delete mode 100644 Basic JavaScript/088-UsingObjectsforLookups.js delete mode 100644 Basic JavaScript/089-TestingObjectsforProperties.js delete mode 100644 Basic JavaScript/090-ManipulatingComplexObjects.js delete mode 100644 Basic JavaScript/091-AccessingNestedObjects.js delete mode 100644 Basic JavaScript/092-AccessingNestedArrays.js delete mode 100644 Basic JavaScript/093-RecordCollection.js delete mode 100644 Basic JavaScript/094-IteratewithJavaScriptWhileLoops.js delete mode 100644 Basic JavaScript/095-IteratewithJavaScriptForLoops.js delete mode 100644 Basic JavaScript/096-IterateOddNumbersWithaForLoop.js delete mode 100644 Basic JavaScript/097-CountBackwardsWithaForLoop.js delete mode 100644 Basic JavaScript/098-IterateThroughanArraywithaForLoop.js delete mode 100644 Basic JavaScript/099-NestingForLoops.js delete mode 100644 Basic JavaScript/100-IteratewithJavaScriptDo...WhileLoops.js delete mode 100644 Basic JavaScript/101-ReplaceLoopsusingRecursion.js delete mode 100644 Basic JavaScript/102-ProfileLookup.js delete mode 100644 Basic JavaScript/103-GenerateRandomFractionswithJavaScript.js delete mode 100644 Basic JavaScript/104-GenerateRandomWholeNumberswithJavaScript.js delete mode 100644 Basic JavaScript/105-GenerateRandomWholeNumberswithinaRange.js delete mode 100644 Basic JavaScript/106-UsetheparseIntFunction.js delete mode 100644 Basic JavaScript/107-UsetheparseIntFunctionwithaRadix.js delete mode 100644 Basic JavaScript/108-UsetheConditional(Ternary)Operator.js delete mode 100644 Basic JavaScript/109-UsetheConditional(Ternary)Operator.js delete mode 100644 Basic JavaScript/110-UseRecursiontoCreateaCountdown.js delete mode 100644 Basic JavaScript/111-UseRecursiontoCreateaRangeofNumbers.js delete mode 100644 Basic JavaScript/112-DeclareaReadOnlyVariablewiththeconstKeyword.js delete mode 100644 Basic JavaScript/113-ExploreDifferencesBetweenthevarandletKeywords.js delete mode 100755 Basic JavaScript/rename.sh diff --git a/Basic JavaScript/.DS_Store b/Basic JavaScript/.DS_Store deleted file mode 100644 index 356ae8eb24ab0d78236ede713b3b6794417e24c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 18436 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 diff --git a/Basic JavaScript/001-CommentYourJavaScriptCode.js b/Basic JavaScript/001-CommentYourJavaScriptCode.js deleted file mode 100644 index c16b0a5..0000000 --- a/Basic JavaScript/001-CommentYourJavaScriptCode.js +++ /dev/null @@ -1,4 +0,0 @@ -//This is an inline comment -/*This is a -multi-line comment -*/ \ No newline at end of file diff --git a/Basic JavaScript/002-DeclareJavaScriptVariables.js b/Basic JavaScript/002-DeclareJavaScriptVariables.js deleted file mode 100644 index 1e152a1..0000000 --- a/Basic JavaScript/002-DeclareJavaScriptVariables.js +++ /dev/null @@ -1,5 +0,0 @@ -//undefined, null, boolean, string, symbol, bigint, number, and object -//We can declare a variable 3 ways -var myName; // Used throughout the program -let ourName="Sarav"; // Used within the scope -const pi=3.14; // constant cannot change \ No newline at end of file diff --git a/Basic JavaScript/003-StoringValueswiththeAssignmentOperator.js b/Basic JavaScript/003-StoringValueswiththeAssignmentOperator.js deleted file mode 100644 index 6e3f2bb..0000000 --- a/Basic JavaScript/003-StoringValueswiththeAssignmentOperator.js +++ /dev/null @@ -1,4 +0,0 @@ -// Setup -var a; -a=7; -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/004-AssigningtheValueofOneVariabletoAnother.js b/Basic JavaScript/004-AssigningtheValueofOneVariabletoAnother.js deleted file mode 100644 index 0a561f5..0000000 --- a/Basic JavaScript/004-AssigningtheValueofOneVariabletoAnother.js +++ /dev/null @@ -1,6 +0,0 @@ -// Setup -var a; -a = 7; -var b; -b=a; -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/005-InitializingVariableswiththeAssignmentOperator.js b/Basic JavaScript/005-InitializingVariableswiththeAssignmentOperator.js deleted file mode 100644 index cec9b02..0000000 --- a/Basic JavaScript/005-InitializingVariableswiththeAssignmentOperator.js +++ /dev/null @@ -1 +0,0 @@ -var a=9; \ No newline at end of file diff --git a/Basic JavaScript/006-UnderstandingUninitializedVariables.js b/Basic JavaScript/006-UnderstandingUninitializedVariables.js deleted file mode 100644 index f8e6453..0000000 --- a/Basic JavaScript/006-UnderstandingUninitializedVariables.js +++ /dev/null @@ -1,11 +0,0 @@ -// Only change code below this line -var a; -var b; -var c; -// Only change code above this line -a=5; -b=10; -c="I am a"; -a = a + 1; -b = b + 5; -c = c + " String!"; \ No newline at end of file diff --git a/Basic JavaScript/007-UnderstandingCaseSensitivityinVariables.js b/Basic JavaScript/007-UnderstandingCaseSensitivityinVariables.js deleted file mode 100644 index f270cc1..0000000 --- a/Basic JavaScript/007-UnderstandingCaseSensitivityinVariables.js +++ /dev/null @@ -1,9 +0,0 @@ -// Variable declarations -var studlyCapVar; -var properCamelCase; -var titleCaseOver; - -// Variable assignments -studlyCapVar = 10; -properCamelCase = "A String"; -titleCaseOver = 9000; \ No newline at end of file diff --git a/Basic JavaScript/008-AddTwoNumberswithJavaScript.js b/Basic JavaScript/008-AddTwoNumberswithJavaScript.js deleted file mode 100644 index 16afed7..0000000 --- a/Basic JavaScript/008-AddTwoNumberswithJavaScript.js +++ /dev/null @@ -1 +0,0 @@ -var sum = 10 + 10; \ No newline at end of file diff --git a/Basic JavaScript/009-SubtractOneNumberfromAnotherwithJavaScript.js b/Basic JavaScript/009-SubtractOneNumberfromAnotherwithJavaScript.js deleted file mode 100644 index a946db9..0000000 --- a/Basic JavaScript/009-SubtractOneNumberfromAnotherwithJavaScript.js +++ /dev/null @@ -1 +0,0 @@ -var difference = 45 - 33; \ No newline at end of file diff --git a/Basic JavaScript/010-MultiplyTwoNumberswithJavaScript.js b/Basic JavaScript/010-MultiplyTwoNumberswithJavaScript.js deleted file mode 100644 index a5012f5..0000000 --- a/Basic JavaScript/010-MultiplyTwoNumberswithJavaScript.js +++ /dev/null @@ -1 +0,0 @@ -var product = 8 * 10; \ No newline at end of file diff --git a/Basic JavaScript/011-DivideOneNumberbyAnotherwithJavaScript.js b/Basic JavaScript/011-DivideOneNumberbyAnotherwithJavaScript.js deleted file mode 100644 index 026cfb9..0000000 --- a/Basic JavaScript/011-DivideOneNumberbyAnotherwithJavaScript.js +++ /dev/null @@ -1 +0,0 @@ -var quotient = 66 / 33; \ No newline at end of file diff --git a/Basic JavaScript/012-IncrementaNumberwithJavaScript.js b/Basic JavaScript/012-IncrementaNumberwithJavaScript.js deleted file mode 100644 index 018bf78..0000000 --- a/Basic JavaScript/012-IncrementaNumberwithJavaScript.js +++ /dev/null @@ -1,4 +0,0 @@ -var myVar = 87; - -// Only change code below this line -myVar++; \ No newline at end of file diff --git a/Basic JavaScript/013-DecrementaNumberwithJavaScript.js b/Basic JavaScript/013-DecrementaNumberwithJavaScript.js deleted file mode 100644 index 6baf53f..0000000 --- a/Basic JavaScript/013-DecrementaNumberwithJavaScript.js +++ /dev/null @@ -1,4 +0,0 @@ -var myVar = 11; - -// Only change code below this line -myVar--; \ No newline at end of file diff --git a/Basic JavaScript/014-CreateDecimalNumberswithJavaScript.js b/Basic JavaScript/014-CreateDecimalNumberswithJavaScript.js deleted file mode 100644 index ac20ceb..0000000 --- a/Basic JavaScript/014-CreateDecimalNumberswithJavaScript.js +++ /dev/null @@ -1,4 +0,0 @@ -var ourDecimal = 5.7; - -// Only change code below this line -var myDecimal=5.7; \ No newline at end of file diff --git a/Basic JavaScript/015-MultiplyTwoDecimalswithJavaScript.js b/Basic JavaScript/015-MultiplyTwoDecimalswithJavaScript.js deleted file mode 100644 index fabedf7..0000000 --- a/Basic JavaScript/015-MultiplyTwoDecimalswithJavaScript.js +++ /dev/null @@ -1 +0,0 @@ -var product = 2.0 * 2.5; \ No newline at end of file diff --git a/Basic JavaScript/016-DivideOneDecimalbyAnotherwithJavaScript.js b/Basic JavaScript/016-DivideOneDecimalbyAnotherwithJavaScript.js deleted file mode 100644 index 69f67c2..0000000 --- a/Basic JavaScript/016-DivideOneDecimalbyAnotherwithJavaScript.js +++ /dev/null @@ -1 +0,0 @@ -var quotient = 4.4 / 2.0; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/017-FindingaRemainderinJavaScript.js b/Basic JavaScript/017-FindingaRemainderinJavaScript.js deleted file mode 100644 index 2e91082..0000000 --- a/Basic JavaScript/017-FindingaRemainderinJavaScript.js +++ /dev/null @@ -1,4 +0,0 @@ -// Only change code below this line - -var remainder; -remainder=11%3; \ No newline at end of file diff --git a/Basic JavaScript/018-CompoundAssignmentWithAugmentedAddition.js b/Basic JavaScript/018-CompoundAssignmentWithAugmentedAddition.js deleted file mode 100644 index 07aacd6..0000000 --- a/Basic JavaScript/018-CompoundAssignmentWithAugmentedAddition.js +++ /dev/null @@ -1,8 +0,0 @@ -var a = 3; -var b = 17; -var c = 12; - -// Only change code below this line -a+=12; -b+=9; -c+=7; \ No newline at end of file diff --git a/Basic JavaScript/019-CompoundAssignmentWithAugmentedSubtraction.js b/Basic JavaScript/019-CompoundAssignmentWithAugmentedSubtraction.js deleted file mode 100644 index bc52aa2..0000000 --- a/Basic JavaScript/019-CompoundAssignmentWithAugmentedSubtraction.js +++ /dev/null @@ -1,8 +0,0 @@ -var a = 11; -var b = 9; -var c = 3; - -// Only change code below this line -a-=6; -b-=15; -c-=1; \ No newline at end of file diff --git a/Basic JavaScript/020-CompoundAssignmentWithAugmentedMultiplication.js b/Basic JavaScript/020-CompoundAssignmentWithAugmentedMultiplication.js deleted file mode 100644 index e374f68..0000000 --- a/Basic JavaScript/020-CompoundAssignmentWithAugmentedMultiplication.js +++ /dev/null @@ -1,8 +0,0 @@ -var a = 5; -var b = 12; -var c = 4.6; - -// Only change code below this line -a*=5; -b*=3; -c*=10; \ No newline at end of file diff --git a/Basic JavaScript/021-CompoundAssignmentWithAugmentedDivision.js b/Basic JavaScript/021-CompoundAssignmentWithAugmentedDivision.js deleted file mode 100644 index 1f68184..0000000 --- a/Basic JavaScript/021-CompoundAssignmentWithAugmentedDivision.js +++ /dev/null @@ -1,8 +0,0 @@ -var a = 48; -var b = 108; -var c = 33; - -// Only change code below this line -a /=12; -b/=4; -c /=11; \ No newline at end of file diff --git a/Basic JavaScript/022-DeclareStringVariables.js b/Basic JavaScript/022-DeclareStringVariables.js deleted file mode 100644 index 16fa0d7..0000000 --- a/Basic JavaScript/022-DeclareStringVariables.js +++ /dev/null @@ -1,2 +0,0 @@ -var myFirstName="Levi"; -var myLastName="Ackerman"; \ No newline at end of file diff --git a/Basic JavaScript/023-EscapingLiteralQuotesinStrings.js b/Basic JavaScript/023-EscapingLiteralQuotesinStrings.js deleted file mode 100644 index a073720..0000000 --- a/Basic JavaScript/023-EscapingLiteralQuotesinStrings.js +++ /dev/null @@ -1 +0,0 @@ -var myStr = "I am a \"double quoted\" string inside \"double quotes\"."; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/024-QuotingStringswithSingleQuotes.js b/Basic JavaScript/024-QuotingStringswithSingleQuotes.js deleted file mode 100644 index 4c92b4e..0000000 --- a/Basic JavaScript/024-QuotingStringswithSingleQuotes.js +++ /dev/null @@ -1 +0,0 @@ -var myStr = 'Link'; \ No newline at end of file diff --git a/Basic JavaScript/025-EscapeSequencesinStrings.js b/Basic JavaScript/025-EscapeSequencesinStrings.js deleted file mode 100644 index 66c65dd..0000000 --- a/Basic JavaScript/025-EscapeSequencesinStrings.js +++ /dev/null @@ -1 +0,0 @@ -var myStr="FirstLine\n\t\\SecondLine\nThirdLine"; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/026-ConcatenatingStringswithPlusOperator.js b/Basic JavaScript/026-ConcatenatingStringswithPlusOperator.js deleted file mode 100644 index 8e8e345..0000000 --- a/Basic JavaScript/026-ConcatenatingStringswithPlusOperator.js +++ /dev/null @@ -1 +0,0 @@ -var myStr="This is the start. "+"This is the end."; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/027-ConcatenatingStringswiththePlusEqualsOperator.js b/Basic JavaScript/027-ConcatenatingStringswiththePlusEqualsOperator.js deleted file mode 100644 index 9c2c70c..0000000 --- a/Basic JavaScript/027-ConcatenatingStringswiththePlusEqualsOperator.js +++ /dev/null @@ -1,4 +0,0 @@ -// Only change code below this line - -var myStr="This is the first sentence. "; -myStr+="This is the second sentence."; \ No newline at end of file diff --git a/Basic JavaScript/028-ConstructingStringswithVariables.js b/Basic JavaScript/028-ConstructingStringswithVariables.js deleted file mode 100644 index da0f050..0000000 --- a/Basic JavaScript/028-ConstructingStringswithVariables.js +++ /dev/null @@ -1,3 +0,0 @@ -// Only change code below this line -var myName="Alice"; -var myStr="My name is "+myName+" and I am well!"; \ No newline at end of file diff --git a/Basic JavaScript/029-AppendingVariablestoStrings.js b/Basic JavaScript/029-AppendingVariablestoStrings.js deleted file mode 100644 index c8506ce..0000000 --- a/Basic JavaScript/029-AppendingVariablestoStrings.js +++ /dev/null @@ -1,5 +0,0 @@ -// Change code below this line - -var someAdjective="Hello"; -var myStr = "Learning to code is "; -myStr+=someAdjective; \ No newline at end of file diff --git a/Basic JavaScript/030-FindtheLengthofaString.js b/Basic JavaScript/030-FindtheLengthofaString.js deleted file mode 100644 index 96cec42..0000000 --- a/Basic JavaScript/030-FindtheLengthofaString.js +++ /dev/null @@ -1,7 +0,0 @@ -// Setup -var lastNameLength = 0; -var lastName = "Lovelace"; - -// Only change code below this line - -lastNameLength = lastName.length; \ No newline at end of file diff --git a/Basic JavaScript/031-UseBracketNotationtoFindtheFirstCharacterinaString.js b/Basic JavaScript/031-UseBracketNotationtoFindtheFirstCharacterinaString.js deleted file mode 100644 index c4e42a3..0000000 --- a/Basic JavaScript/031-UseBracketNotationtoFindtheFirstCharacterinaString.js +++ /dev/null @@ -1,6 +0,0 @@ -// Setup -var firstLetterOfLastName = ""; -var lastName = "Lovelace"; - -// Only change code below this line -firstLetterOfLastName = lastName[0]; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/032-UnderstandStringImmutability.js b/Basic JavaScript/032-UnderstandStringImmutability.js deleted file mode 100644 index 65f05de..0000000 --- a/Basic JavaScript/032-UnderstandStringImmutability.js +++ /dev/null @@ -1,6 +0,0 @@ -// Setup -var myStr = "Jello World"; - -// Only change code below this line -myStr = "Hello World"; // Change this line -// Only change code above this line \ No newline at end of file diff --git a/Basic JavaScript/033-UseBracketNotationtoFindtheNthCharacterinaString.js b/Basic JavaScript/033-UseBracketNotationtoFindtheNthCharacterinaString.js deleted file mode 100644 index 83a6d67..0000000 --- a/Basic JavaScript/033-UseBracketNotationtoFindtheNthCharacterinaString.js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var lastName = "Lovelace"; - -// Only change code below this line -var thirdLetterOfLastName = lastName[2]; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/034-UseBracketNotationtoFindtheLastCharacterinaString.js b/Basic JavaScript/034-UseBracketNotationtoFindtheLastCharacterinaString.js deleted file mode 100644 index 2bd4b40..0000000 --- a/Basic JavaScript/034-UseBracketNotationtoFindtheLastCharacterinaString.js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var lastName = "Lovelace"; - -// Only change code below this line -var lastLetterOfLastName = lastName[lastName.length-1]; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/035-UseBracketNotationtoFindtheNth-to-LastCharacterinaString.js b/Basic JavaScript/035-UseBracketNotationtoFindtheNth-to-LastCharacterinaString.js deleted file mode 100644 index 17959c5..0000000 --- a/Basic JavaScript/035-UseBracketNotationtoFindtheNth-to-LastCharacterinaString.js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var lastName = "Lovelace"; - -// Only change code below this line -var secondToLastLetterOfLastName = lastName[lastName.length-2]; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/036-WordBlanks.js b/Basic JavaScript/036-WordBlanks.js deleted file mode 100644 index 72cc8eb..0000000 --- a/Basic JavaScript/036-WordBlanks.js +++ /dev/null @@ -1,8 +0,0 @@ -var myNoun = "dog"; -var myAdjective = "big"; -var myVerb = "ran"; -var myAdverb = "quickly"; - -// Only change code below this line -var wordBlanks = "My "+myAdjective+" "+myNoun+" "+myVerb+" "+myAdverb; // Change this line -// Only change code above this line \ No newline at end of file diff --git a/Basic JavaScript/037-StoreMultipleValuesinoneVariableusingJavaScriptArrays.js b/Basic JavaScript/037-StoreMultipleValuesinoneVariableusingJavaScriptArrays.js deleted file mode 100644 index 676e422..0000000 --- a/Basic JavaScript/037-StoreMultipleValuesinoneVariableusingJavaScriptArrays.js +++ /dev/null @@ -1,2 +0,0 @@ -// Only change code below this line -var myArray = ["Hello",1]; \ No newline at end of file diff --git a/Basic JavaScript/038-NestoneArraywithinAnotherArray.js b/Basic JavaScript/038-NestoneArraywithinAnotherArray.js deleted file mode 100644 index b1060ec..0000000 --- a/Basic JavaScript/038-NestoneArraywithinAnotherArray.js +++ /dev/null @@ -1,2 +0,0 @@ -// Only change code below this line -var myArray = []; \ No newline at end of file diff --git a/Basic JavaScript/039-AccessArrayDatawithIndexes.js b/Basic JavaScript/039-AccessArrayDatawithIndexes.js deleted file mode 100644 index 5486ce0..0000000 --- a/Basic JavaScript/039-AccessArrayDatawithIndexes.js +++ /dev/null @@ -1,2 +0,0 @@ -var myArray = [50,60,70]; -var myData=myArray[0]; \ No newline at end of file diff --git a/Basic JavaScript/040-ModifyArrayDataWithIndexes.js b/Basic JavaScript/040-ModifyArrayDataWithIndexes.js deleted file mode 100644 index 4c4e9e5..0000000 --- a/Basic JavaScript/040-ModifyArrayDataWithIndexes.js +++ /dev/null @@ -1,4 +0,0 @@ -// Setup -var myArray = [18,64,99]; -myArray[0]=45; -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/041-AccessMulti-DimensionalArraysWithIndexes.js b/Basic JavaScript/041-AccessMulti-DimensionalArraysWithIndexes.js deleted file mode 100644 index ab06496..0000000 --- a/Basic JavaScript/041-AccessMulti-DimensionalArraysWithIndexes.js +++ /dev/null @@ -1,3 +0,0 @@ -var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]]; - -var myData = myArray[2][1]; \ No newline at end of file diff --git a/Basic JavaScript/042-ManipulateArraysWithpush().js b/Basic JavaScript/042-ManipulateArraysWithpush().js deleted file mode 100644 index 21574a7..0000000 --- a/Basic JavaScript/042-ManipulateArraysWithpush().js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var myArray = [["John", 23], ["cat", 2]]; - -// Only change code below this line -myArray.push(["dog", 3]); \ No newline at end of file diff --git a/Basic JavaScript/043-ManipulateArraysWithpop().js b/Basic JavaScript/043-ManipulateArraysWithpop().js deleted file mode 100644 index e329f8f..0000000 --- a/Basic JavaScript/043-ManipulateArraysWithpop().js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var myArray = [["John", 23], ["cat", 2]]; - -// Only change code below this line -var removedFromMyArray=myArray.pop(); \ No newline at end of file diff --git a/Basic JavaScript/044-ManipulateArraysWithshift().js b/Basic JavaScript/044-ManipulateArraysWithshift().js deleted file mode 100644 index a03b5e8..0000000 --- a/Basic JavaScript/044-ManipulateArraysWithshift().js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var myArray = [["John", 23], ["dog", 3]]; - -// Only change code below this line -var removedFromMyArray; \ No newline at end of file diff --git a/Basic JavaScript/045-ManipulateArraysWithunshift().js b/Basic JavaScript/045-ManipulateArraysWithunshift().js deleted file mode 100644 index add7436..0000000 --- a/Basic JavaScript/045-ManipulateArraysWithunshift().js +++ /dev/null @@ -1,5 +0,0 @@ -// Setup -var myArray = [["John", 23], ["dog", 3]]; -myArray.shift(); -// Only change code below this line -myArray.unshift(["Paul",35]); \ No newline at end of file diff --git a/Basic JavaScript/046-ShoppingList.js b/Basic JavaScript/046-ShoppingList.js deleted file mode 100644 index 9862c0a..0000000 --- a/Basic JavaScript/046-ShoppingList.js +++ /dev/null @@ -1 +0,0 @@ -var myList = [["Chocolate Bar", 15],["Milk",2],["Cereal",2],["PS5",1],["Tomato",1]]; \ No newline at end of file diff --git a/Basic JavaScript/047-WriteReusableJavaScriptwithFunctions.js b/Basic JavaScript/047-WriteReusableJavaScriptwithFunctions.js deleted file mode 100644 index 89d3669..0000000 --- a/Basic JavaScript/047-WriteReusableJavaScriptwithFunctions.js +++ /dev/null @@ -1,4 +0,0 @@ -function reusableFunction(){ - console.log("Hi World"); -} -reusableFunction(); \ No newline at end of file diff --git a/Basic JavaScript/048-PassingValuestoFunctionswithArguments.js b/Basic JavaScript/048-PassingValuestoFunctionswithArguments.js deleted file mode 100644 index f10e6d5..0000000 --- a/Basic JavaScript/048-PassingValuestoFunctionswithArguments.js +++ /dev/null @@ -1,5 +0,0 @@ -function functionWithArgs(a,b){ - console.log(a+b); -} -functionWithArgs(1,2); -functionWithArgs(7,9); \ No newline at end of file diff --git a/Basic JavaScript/049-GlobalScopeandFunctions.js b/Basic JavaScript/049-GlobalScopeandFunctions.js deleted file mode 100644 index 6b4af95..0000000 --- a/Basic JavaScript/049-GlobalScopeandFunctions.js +++ /dev/null @@ -1,21 +0,0 @@ -// Declare the myGlobal variable below this line -var myGlobal=10; - -function fun1() { - // Assign 5 to oopsGlobal Here - oopsGlobal=5; -} - -// Only change code above this line - -function fun2() { - var output = ""; - if (typeof myGlobal != "undefined") { - output += "myGlobal: " + myGlobal; - } - if (typeof oopsGlobal != "undefined") { - output += " oopsGlobal: " + oopsGlobal; - } - console.log(output); -} -//Variables which are declared without the var keyword are automatically created in the global scope. \ No newline at end of file diff --git a/Basic JavaScript/050-LocalScopeandFunctions.js b/Basic JavaScript/050-LocalScopeandFunctions.js deleted file mode 100644 index 584da36..0000000 --- a/Basic JavaScript/050-LocalScopeandFunctions.js +++ /dev/null @@ -1,11 +0,0 @@ -function myLocalScope() { - - // Only change code below this line - var myVar; - console.log('inside myLocalScope', myVar); -} -myLocalScope(); - -// Run and check the console -// myVar is not defined outside of myLocalScope -console.log('outside myLocalScope', myVar); \ No newline at end of file diff --git a/Basic JavaScript/051-Globalvs.LocalScopeinFunctions.js b/Basic JavaScript/051-Globalvs.LocalScopeinFunctions.js deleted file mode 100644 index d13f7ea..0000000 --- a/Basic JavaScript/051-Globalvs.LocalScopeinFunctions.js +++ /dev/null @@ -1,13 +0,0 @@ -// Setup -var outerWear = "T-Shirt"; - -function myOutfit() { - // Only change code below this line - -var outerWear="sweater"; - - // Only change code above this line - return outerWear; -} - -myOutfit(); \ No newline at end of file diff --git a/Basic JavaScript/052-ReturnaValuefromaFunctionwithReturn.js b/Basic JavaScript/052-ReturnaValuefromaFunctionwithReturn.js deleted file mode 100644 index 44bf008..0000000 --- a/Basic JavaScript/052-ReturnaValuefromaFunctionwithReturn.js +++ /dev/null @@ -1,6 +0,0 @@ -function timesFive(a){ - return a*5; -} -timesFive(5); -timesFive(2); -timesFive(0); \ No newline at end of file diff --git a/Basic JavaScript/053-UnderstandingUndefinedValuereturnedfromaFunction.js b/Basic JavaScript/053-UnderstandingUndefinedValuereturnedfromaFunction.js deleted file mode 100644 index 538c6d3..0000000 --- a/Basic JavaScript/053-UnderstandingUndefinedValuereturnedfromaFunction.js +++ /dev/null @@ -1,16 +0,0 @@ -// Setup -var sum = 0; - -function addThree() { - sum = sum + 3; -} - -// Only change code below this line -function addFive(){ - sum+=5; -} - -// Only change code above this line - -addThree(); -addFive(); \ No newline at end of file diff --git a/Basic JavaScript/054-AssignmentwithaReturnedValue.js b/Basic JavaScript/054-AssignmentwithaReturnedValue.js deleted file mode 100644 index 3201750..0000000 --- a/Basic JavaScript/054-AssignmentwithaReturnedValue.js +++ /dev/null @@ -1,9 +0,0 @@ -// Setup -var processed = 0; - -function processArg(num) { - return (num + 3) / 5; -} - -// Only change code below this line -processed=processArg(7) \ No newline at end of file diff --git a/Basic JavaScript/055-StandinLine.js b/Basic JavaScript/055-StandinLine.js deleted file mode 100644 index 14cc738..0000000 --- a/Basic JavaScript/055-StandinLine.js +++ /dev/null @@ -1,13 +0,0 @@ -function nextInLine(arr, item) { - // Your code here - arr.push(item); - var temp = arr.shift(); - return temp; // Change this line -} -// Test Setup -var testArr = [1,2,3,4,5]; - -// Display Code -console.log("Before: " + JSON.stringify(testArr)); -console.log(nextInLine(testArr, 10)); // Modify this line to test -console.log("After: " + JSON.stringify(testArr)); \ No newline at end of file diff --git a/Basic JavaScript/056-UnderstandingBooleanValues.js b/Basic JavaScript/056-UnderstandingBooleanValues.js deleted file mode 100644 index 2dc1771..0000000 --- a/Basic JavaScript/056-UnderstandingBooleanValues.js +++ /dev/null @@ -1,8 +0,0 @@ -function welcomeToBooleans() { - - // Only change code below this line - - return true; // Change this line - - // Only change code above this line -} \ No newline at end of file diff --git a/Basic JavaScript/057-UseConditionalLogicwithIfStatements.js b/Basic JavaScript/057-UseConditionalLogicwithIfStatements.js deleted file mode 100644 index b332196..0000000 --- a/Basic JavaScript/057-UseConditionalLogicwithIfStatements.js +++ /dev/null @@ -1,7 +0,0 @@ -function trueOrFalse(wasThatTrue) { - // Only change code below this line - if(wasThatTrue)return "Yes, that was true"; - else return "No, that was false" - // Only change code above this line - -} \ No newline at end of file diff --git a/Basic JavaScript/058-ComparisonwiththeEqualityOperator.js b/Basic JavaScript/058-ComparisonwiththeEqualityOperator.js deleted file mode 100644 index 94ad2ee..0000000 --- a/Basic JavaScript/058-ComparisonwiththeEqualityOperator.js +++ /dev/null @@ -1,8 +0,0 @@ -// Setup -function testEqual(val) { - if (val==12) { // Change this line - return "Equal"; - } - return "Not Equal"; -} -testEqual(10); \ No newline at end of file diff --git a/Basic JavaScript/059-ComparisonwiththeStrictEqualityOperator.js b/Basic JavaScript/059-ComparisonwiththeStrictEqualityOperator.js deleted file mode 100644 index d761659..0000000 --- a/Basic JavaScript/059-ComparisonwiththeStrictEqualityOperator.js +++ /dev/null @@ -1,8 +0,0 @@ -// Setup -function testStrict(val) { - if (val===7) { // Change this line - return "Equal"; - } - return "Not Equal"; -} -testStrict(10); \ No newline at end of file diff --git a/Basic JavaScript/060-Practicecomparingdifferentvalues.js b/Basic JavaScript/060-Practicecomparingdifferentvalues.js deleted file mode 100644 index 3a230e6..0000000 --- a/Basic JavaScript/060-Practicecomparingdifferentvalues.js +++ /dev/null @@ -1,9 +0,0 @@ -// Setup -function compareEquality(a, b) { - if (a === b) { // Change this line - return "Equal"; - } - return "Not Equal"; -} - -compareEquality(10, "10"); \ No newline at end of file diff --git a/Basic JavaScript/061-ComparisonwiththeInequalityOperator.js b/Basic JavaScript/061-ComparisonwiththeInequalityOperator.js deleted file mode 100644 index 8aa74bf..0000000 --- a/Basic JavaScript/061-ComparisonwiththeInequalityOperator.js +++ /dev/null @@ -1,9 +0,0 @@ -// Setup -function testNotEqual(val) { - if (val!=99) { // Change this line - return "Not Equal"; - } - return "Equal"; -} - -testNotEqual(10); \ No newline at end of file diff --git a/Basic JavaScript/062-ComparisonwiththeStrictInequalityOperator.js b/Basic JavaScript/062-ComparisonwiththeStrictInequalityOperator.js deleted file mode 100644 index 447b465..0000000 --- a/Basic JavaScript/062-ComparisonwiththeStrictInequalityOperator.js +++ /dev/null @@ -1,9 +0,0 @@ -// Setup -function testStrictNotEqual(val) { - if (val!==17) { // Change this line - return "Not Equal"; - } - return "Equal"; -} - -testStrictNotEqual(10); \ No newline at end of file diff --git a/Basic JavaScript/063-ComparisonwiththeGreaterThanOperator.js b/Basic JavaScript/063-ComparisonwiththeGreaterThanOperator.js deleted file mode 100644 index a1345d6..0000000 --- a/Basic JavaScript/063-ComparisonwiththeGreaterThanOperator.js +++ /dev/null @@ -1,10 +0,0 @@ -function testGreaterThan(val) { - if (val>100) { // Change this line - return "Over 100"; - } - if (val>10) { // Change this line - return "Over 10"; - } - return "10 or Under"; -} -testGreaterThan(10); \ No newline at end of file diff --git a/Basic JavaScript/064-ComparisonwiththeGreaterThanOrEqualToOperator.js b/Basic JavaScript/064-ComparisonwiththeGreaterThanOrEqualToOperator.js deleted file mode 100644 index 08cd273..0000000 --- a/Basic JavaScript/064-ComparisonwiththeGreaterThanOrEqualToOperator.js +++ /dev/null @@ -1,11 +0,0 @@ -function testGreaterOrEqual(val) { - if (val>=20) { // Change this line - return "20 or Over"; - } - if (val>=10) { // Change this line - return "10 or Over"; - } - return "Less than 10"; -} - -testGreaterOrEqual(10); \ No newline at end of file diff --git a/Basic JavaScript/065-ComparisonwiththeLessThanOperator.js b/Basic JavaScript/065-ComparisonwiththeLessThanOperator.js deleted file mode 100644 index 7e55846..0000000 --- a/Basic JavaScript/065-ComparisonwiththeLessThanOperator.js +++ /dev/null @@ -1,11 +0,0 @@ -function testLessThan(val) { - if (val<25) { // Change this line - return "Under 25"; - } - if (val<55) { // Change this line - return "Under 55"; - } - return "55 or Over"; -} - -testLessThan(10); \ No newline at end of file diff --git a/Basic JavaScript/066-ComparisonwiththeLessThanOrEqualToOperator.js b/Basic JavaScript/066-ComparisonwiththeLessThanOrEqualToOperator.js deleted file mode 100644 index b6ae496..0000000 --- a/Basic JavaScript/066-ComparisonwiththeLessThanOrEqualToOperator.js +++ /dev/null @@ -1,11 +0,0 @@ -function testLessOrEqual(val) { - if (val<=12) { // Change this line - return "Smaller Than or Equal to 12"; - } - if (val<=24) { // Change this line - return "Smaller Than or Equal to 24"; - } - return "More Than 24"; -} - -testLessOrEqual(10); \ No newline at end of file diff --git a/Basic JavaScript/067-ComparisonswiththeLogicalAndOperator.js b/Basic JavaScript/067-ComparisonswiththeLogicalAndOperator.js deleted file mode 100644 index a0f9082..0000000 --- a/Basic JavaScript/067-ComparisonswiththeLogicalAndOperator.js +++ /dev/null @@ -1,10 +0,0 @@ -function testLogicalAnd(val) { - // Only change code below this line - if (val<=50&&val>=25) { - return "Yes"; - } - // Only change code above this line - return "No"; -} - -testLogicalAnd(10); \ No newline at end of file diff --git a/Basic JavaScript/068-ComparisonswiththeLogicalOrOperator.js b/Basic JavaScript/068-ComparisonswiththeLogicalOrOperator.js deleted file mode 100644 index 525b2d4..0000000 --- a/Basic JavaScript/068-ComparisonswiththeLogicalOrOperator.js +++ /dev/null @@ -1,10 +0,0 @@ -function testLogicalOr(val) { - // Only change code below this line - if (val<10||val>20) { - return "Outside"; - } - // Only change code above this line - return "Inside"; -} - -testLogicalOr(15); diff --git a/Basic JavaScript/069-IntroducingElseStatements.js b/Basic JavaScript/069-IntroducingElseStatements.js deleted file mode 100644 index e9c976e..0000000 --- a/Basic JavaScript/069-IntroducingElseStatements.js +++ /dev/null @@ -1,14 +0,0 @@ -function testElse(val) { - var result = ""; - // Only change code below this line - if (val > 5) { - result = "Bigger than 5"; - } - else{ - result = "5 or Smaller"; - } - // Only change code above this line - return result; -} - -testElse(4); \ No newline at end of file diff --git a/Basic JavaScript/070-IntroducingElseIfStatements.js b/Basic JavaScript/070-IntroducingElseIfStatements.js deleted file mode 100644 index 934a40c..0000000 --- a/Basic JavaScript/070-IntroducingElseIfStatements.js +++ /dev/null @@ -1,13 +0,0 @@ -function testElseIf(val) { - if (val > 10) { - return "Greater than 10"; - } - else if (val < 5) { - return "Smaller than 5"; - } - else{ - return "Between 5 and 10"; - } -} - -testElseIf(7); \ No newline at end of file diff --git a/Basic JavaScript/071-LogicalOrderinIfElseStatements.js b/Basic JavaScript/071-LogicalOrderinIfElseStatements.js deleted file mode 100644 index 4f85b55..0000000 --- a/Basic JavaScript/071-LogicalOrderinIfElseStatements.js +++ /dev/null @@ -1,11 +0,0 @@ -function orderMyLogic(val) { - if (val < 5) { - return "Less than 5"; - } else if (val < 10) { - return "Less than 10"; - } else { - return "Greater than or equal to 10"; - } -} - -orderMyLogic(7); \ No newline at end of file diff --git a/Basic JavaScript/072-ChainingIfElseStatements.js b/Basic JavaScript/072-ChainingIfElseStatements.js deleted file mode 100644 index e72d37d..0000000 --- a/Basic JavaScript/072-ChainingIfElseStatements.js +++ /dev/null @@ -1,17 +0,0 @@ -function testSize(num) { - // Only change code below this line - if (num < 5) { - return "Tiny"; - } else if (num < 10) { - return "Small"; - } else if (num < 15) { - return "Medium"; - } else if (num < 20) { - return "Large"; - } else { - return "Huge"; - } - // Only change code above this line -} - -testSize(7); \ No newline at end of file diff --git a/Basic JavaScript/073-GolfCode.js b/Basic JavaScript/073-GolfCode.js deleted file mode 100644 index 8cee7c7..0000000 --- a/Basic JavaScript/073-GolfCode.js +++ /dev/null @@ -1,21 +0,0 @@ -function golfScore(par, strokes) { - // Only change code below this line - if (strokes == 1) { - return "Hole-in-one!"; - } else if (strokes <= par - 2) { - return "Eagle"; - } else if (strokes == par - 1) { - return "Birdie"; - } else if (strokes == par) { - return "Par"; - } else if (strokes == par + 1) { - return "Bogey"; - } else if (strokes == par + 2) { - return "Double Bogey"; - } else { - return "Go Home!"; - } - // Only change code above this line -} -// Change these values to test -golfScore(5, 4); \ No newline at end of file diff --git a/Basic JavaScript/074-SelectingfromManyOptionswithSwitchStatements.js b/Basic JavaScript/074-SelectingfromManyOptionswithSwitchStatements.js deleted file mode 100644 index 18b3f57..0000000 --- a/Basic JavaScript/074-SelectingfromManyOptionswithSwitchStatements.js +++ /dev/null @@ -1,19 +0,0 @@ -function caseInSwitch(val) { - var answer = ""; - // Only change code below this line - switch (val) { - case 1: - return "alpha"; - case 2: - return "beta"; - case 3: - return "gamma"; - case 4: - return "delta"; - } - // Only change code above this line - return answer; -} - -// Change this value to test -caseInSwitch(1); \ No newline at end of file diff --git a/Basic JavaScript/075-AddingaDefaultOptioninSwitchStatements.js b/Basic JavaScript/075-AddingaDefaultOptioninSwitchStatements.js deleted file mode 100644 index b183b53..0000000 --- a/Basic JavaScript/075-AddingaDefaultOptioninSwitchStatements.js +++ /dev/null @@ -1,18 +0,0 @@ -function switchOfStuff(val) { - var answer = ""; - switch (val) { - case "a": - answer = "apple"; - break; - case "b": - answer = "bird"; - break; - case "c": - answer = "cat"; - break; - default: - answer = "stuff"; - } - return answer; -} -switchOfStuff(1); \ No newline at end of file diff --git a/Basic JavaScript/076-MultipleIdenticalOptionsinSwitchStatements.js b/Basic JavaScript/076-MultipleIdenticalOptionsinSwitchStatements.js deleted file mode 100644 index 59abddd..0000000 --- a/Basic JavaScript/076-MultipleIdenticalOptionsinSwitchStatements.js +++ /dev/null @@ -1,22 +0,0 @@ -function sequentialSizes(val) { - var answer = ""; - // Only change code below this line - switch (val) { - case 1: - case 2: - case 3: - return "Low"; - case 4: - case 5: - case 6: - return "Mid"; - case 7: - case 8: - case 9: - return "High"; - } - // Only change code above this line - return answer; -} -// Change this value to test -sequentialSizes(1); diff --git a/Basic JavaScript/077-ReplacingIfElseChainswithSwitch.js b/Basic JavaScript/077-ReplacingIfElseChainswithSwitch.js deleted file mode 100644 index ce7ded5..0000000 --- a/Basic JavaScript/077-ReplacingIfElseChainswithSwitch.js +++ /dev/null @@ -1,25 +0,0 @@ -function chainToSwitch(val) { - var answer = ""; - // Only change code below this line - switch (val) { - case "bob": - answer = "Marley"; - break; - case 42: - answer = "The Answer"; - break; - case 1: - answer = "There is no #1"; - break; - case 99: - answer = "Missed me by this much!"; - break; - case 7: - answer = "Ate Nine"; - break; - } - // Only change code above this line - return answer; -} -// Change this value to test -chainToSwitch(7); \ No newline at end of file diff --git a/Basic JavaScript/078-ReturningBooleanValuesfromFunctions.js b/Basic JavaScript/078-ReturningBooleanValuesfromFunctions.js deleted file mode 100644 index e30062f..0000000 --- a/Basic JavaScript/078-ReturningBooleanValuesfromFunctions.js +++ /dev/null @@ -1,5 +0,0 @@ -function isLess(a, b) { - // Fix this code - return a <= b; -} -isLess(10, 15); \ No newline at end of file diff --git a/Basic JavaScript/079-ReturnEarlyPatternforFunctions.js b/Basic JavaScript/079-ReturnEarlyPatternforFunctions.js deleted file mode 100644 index 757697d..0000000 --- a/Basic JavaScript/079-ReturnEarlyPatternforFunctions.js +++ /dev/null @@ -1,10 +0,0 @@ -// Setup -function abTest(a, b) { - // Only change code below this line - if (a < 0 || b < 0) { - return undefined; - } - // Only change code above this line - return Math.round(Math.pow(Math.sqrt(a) + Math.sqrt(b), 2)); -} -abTest(2,2); \ No newline at end of file diff --git a/Basic JavaScript/080-CountingCards.js b/Basic JavaScript/080-CountingCards.js deleted file mode 100644 index 4135245..0000000 --- a/Basic JavaScript/080-CountingCards.js +++ /dev/null @@ -1,28 +0,0 @@ -var count = 0; -function cc(card) { - // Only change code below this line - switch (card) { - case 2: - case 3: - case 4: - case 5: - case 6: - count++; - break; - case 10: - case "J": - case "Q": - case "K": - case "A": - count--; - break; - } - if (count > 0) { - return count + " Bet"; - } else { - return count + " Hold"; - } - // Only change code above this line -} - -cc(2); cc(3); cc(7); cc('K'); cc('A'); \ No newline at end of file diff --git a/Basic JavaScript/081-BuildJavaScriptObjects.js b/Basic JavaScript/081-BuildJavaScriptObjects.js deleted file mode 100644 index fc57391..0000000 --- a/Basic JavaScript/081-BuildJavaScriptObjects.js +++ /dev/null @@ -1,8 +0,0 @@ -var myDog = { - // Only change code below this line - "name":"Jacky", - "legs":4, - "tails":1, - "friends":["humans","cat"] - // Only change code above this line -}; \ No newline at end of file diff --git a/Basic JavaScript/082-AccessingObjectPropertieswithDotNotation.js b/Basic JavaScript/082-AccessingObjectPropertieswithDotNotation.js deleted file mode 100644 index ccbf7bf..0000000 --- a/Basic JavaScript/082-AccessingObjectPropertieswithDotNotation.js +++ /dev/null @@ -1,11 +0,0 @@ -// Setup -var testObj = { - "hat": "ballcap", - "shirt": "jersey", - "shoes": "cleats" -}; - -// Only change code below this line - -var hatValue = testObj.hat; // Change this line -var shirtValue = testObj.shirt; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/083-AccessingObjectPropertieswithBracketNotation.js b/Basic JavaScript/083-AccessingObjectPropertieswithBracketNotation.js deleted file mode 100644 index c34da08..0000000 --- a/Basic JavaScript/083-AccessingObjectPropertieswithBracketNotation.js +++ /dev/null @@ -1,11 +0,0 @@ -// Setup -var testObj = { - "an entree": "hamburger", - "my side": "veggies", - "the drink": "water" -}; - -// Only change code below this line - -var entreeValue = testObj["an entree"]; // Change this line -var drinkValue = testObj["the drink"]; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/084-AccessingObjectPropertieswithVariables.js b/Basic JavaScript/084-AccessingObjectPropertieswithVariables.js deleted file mode 100644 index b3e87d0..0000000 --- a/Basic JavaScript/084-AccessingObjectPropertieswithVariables.js +++ /dev/null @@ -1,9 +0,0 @@ -// Setup -var testObj = { - 12: "Namath", - 16: "Montana", - 19: "Unitas" -}; -// Only change code below this line -var playerNumber=16; // Change this line -var player = testObj[playerNumber]; // Change this line \ No newline at end of file diff --git a/Basic JavaScript/085-UpdatingObjectProperties.js b/Basic JavaScript/085-UpdatingObjectProperties.js deleted file mode 100644 index e534a99..0000000 --- a/Basic JavaScript/085-UpdatingObjectProperties.js +++ /dev/null @@ -1,10 +0,0 @@ -// Setup -var myDog = { - "name": "Coder", - "legs": 4, - "tails": 1, - "friends": ["freeCodeCamp Campers"] -}; -myDog.name="Happy Coder"; -//myDog["name"]="Happy Coder"; -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/086-AddNewPropertiestoaJavaScriptObject.js b/Basic JavaScript/086-AddNewPropertiestoaJavaScriptObject.js deleted file mode 100644 index a8ce919..0000000 --- a/Basic JavaScript/086-AddNewPropertiestoaJavaScriptObject.js +++ /dev/null @@ -1,8 +0,0 @@ -var myDog = { - "name": "Happy Coder", - "legs": 4, - "tails": 1, - "friends": ["freeCodeCamp Campers"] -}; -myDog.bark="woof"; -//myDog["bark"]="woof"; \ No newline at end of file diff --git a/Basic JavaScript/087-DeletePropertiesfromaJavaScriptObject.js b/Basic JavaScript/087-DeletePropertiesfromaJavaScriptObject.js deleted file mode 100644 index e903c2c..0000000 --- a/Basic JavaScript/087-DeletePropertiesfromaJavaScriptObject.js +++ /dev/null @@ -1,10 +0,0 @@ -// Setup -var myDog = { - "name": "Happy Coder", - "legs": 4, - "tails": 1, - "friends": ["freeCodeCamp Campers"], - "bark": "woof" -}; -// Only change code below this line -delete myDog.tails; \ No newline at end of file diff --git a/Basic JavaScript/088-UsingObjectsforLookups.js b/Basic JavaScript/088-UsingObjectsforLookups.js deleted file mode 100644 index aa3bafa..0000000 --- a/Basic JavaScript/088-UsingObjectsforLookups.js +++ /dev/null @@ -1,18 +0,0 @@ -// Setup -function phoneticLookup(val) { - var result = ""; - // Only change code below this line - var lookup = { - alpha: "Adams", - bravo: "Boston", - charlie: "Chicago", - delta: "Denver", - echo: "Easy", - foxtrot: "Frank" - }; - return lookup[val]; - // Only change code above this line - return result; -} - -phoneticLookup("charlie"); \ No newline at end of file diff --git a/Basic JavaScript/089-TestingObjectsforProperties.js b/Basic JavaScript/089-TestingObjectsforProperties.js deleted file mode 100644 index 68029fe..0000000 --- a/Basic JavaScript/089-TestingObjectsforProperties.js +++ /dev/null @@ -1,9 +0,0 @@ -function checkObj(obj, checkProp) { - // Only change code below this line - if (obj.hasOwnProperty(checkProp)) { - return obj[checkProp]; - } else { - return "Not Found"; - } - // Only change code above this line -} \ No newline at end of file diff --git a/Basic JavaScript/090-ManipulatingComplexObjects.js b/Basic JavaScript/090-ManipulatingComplexObjects.js deleted file mode 100644 index 7ead8aa..0000000 --- a/Basic JavaScript/090-ManipulatingComplexObjects.js +++ /dev/null @@ -1,23 +0,0 @@ -var myMusic = [ - { - "artist": "Billy Joel", - "title": "Piano Man", - "release_year": 1973, - "formats": [ - "CD", - "8T", - "LP" - ], - "gold": true - }, - { - "artist": "Billy Joel", - "title": "Piano Man", - "release_year": 1973, - "formats": [ - "CD", - "8T", - "LP" - ] - } -]; \ No newline at end of file diff --git a/Basic JavaScript/091-AccessingNestedObjects.js b/Basic JavaScript/091-AccessingNestedObjects.js deleted file mode 100644 index e5d495d..0000000 --- a/Basic JavaScript/091-AccessingNestedObjects.js +++ /dev/null @@ -1,12 +0,0 @@ -var myStorage = { - "car": { - "inside": { - "glove box": "maps", - "passenger seat": "crumbs" - }, - "outside": { - "trunk": "jack" - } - } -}; -var gloveBoxContents = myStorage.car.inside["glove box"]; \ No newline at end of file diff --git a/Basic JavaScript/092-AccessingNestedArrays.js b/Basic JavaScript/092-AccessingNestedArrays.js deleted file mode 100644 index 6665c32..0000000 --- a/Basic JavaScript/092-AccessingNestedArrays.js +++ /dev/null @@ -1,20 +0,0 @@ -var myPlants = [ - { - type: "flowers", - list: [ - "rose", - "tulip", - "dandelion" - ] - }, - { - type: "trees", - list: [ - "fir", - "pine", - "birch" - ] - } -]; - -var secondTree = myPlants[1].list[1]; \ No newline at end of file diff --git a/Basic JavaScript/093-RecordCollection.js b/Basic JavaScript/093-RecordCollection.js deleted file mode 100644 index d01acb8..0000000 --- a/Basic JavaScript/093-RecordCollection.js +++ /dev/null @@ -1,36 +0,0 @@ -// Setup -var recordCollection = { - 2548: { - albumTitle: 'Slippery When Wet', - artist: 'Bon Jovi', - tracks: ['Let It Rock', 'You Give Love a Bad Name'] - }, - 2468: { - albumTitle: '1999', - artist: 'Prince', - tracks: ['1999', 'Little Red Corvette'] - }, - 1245: { - artist: 'Robert Palmer', - tracks: [] - }, - 5439: { - albumTitle: 'ABBA Gold' - } -}; - -// Only change code below this line -function updateRecords(records, id, prop, value) { - if (prop !== 'tracks' && value !== "") { - records[id][prop] = value; - } else if (prop === "tracks" && records[id].hasOwnProperty("tracks") === false) { - records[id][prop] = [value]; - } else if (prop === "tracks" && value !== "") { - records[id][prop].push(value); - } else if (value === "") { - delete records[id][prop]; - } - return records; -} - -updateRecords(recordCollection, 5439, 'artist', 'ABBA'); \ No newline at end of file diff --git a/Basic JavaScript/094-IteratewithJavaScriptWhileLoops.js b/Basic JavaScript/094-IteratewithJavaScriptWhileLoops.js deleted file mode 100644 index 8c97694..0000000 --- a/Basic JavaScript/094-IteratewithJavaScriptWhileLoops.js +++ /dev/null @@ -1,8 +0,0 @@ -// Setup -var myArray = []; -var i = 5; -while(i >=0) { - myArray.push(i); - i--; -} -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/095-IteratewithJavaScriptForLoops.js b/Basic JavaScript/095-IteratewithJavaScriptForLoops.js deleted file mode 100644 index e27ca20..0000000 --- a/Basic JavaScript/095-IteratewithJavaScriptForLoops.js +++ /dev/null @@ -1,6 +0,0 @@ -// Setup -var myArray = []; -for (var i = 1; i <= 5; i++) { - myArray.push(i); -} -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/096-IterateOddNumbersWithaForLoop.js b/Basic JavaScript/096-IterateOddNumbersWithaForLoop.js deleted file mode 100644 index fd13aed..0000000 --- a/Basic JavaScript/096-IterateOddNumbersWithaForLoop.js +++ /dev/null @@ -1,6 +0,0 @@ -// Setup -var myArray = []; -for (var i = 1; i < 10; i +=2) { - myArray.push(i); -} -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/097-CountBackwardsWithaForLoop.js b/Basic JavaScript/097-CountBackwardsWithaForLoop.js deleted file mode 100644 index 5119680..0000000 --- a/Basic JavaScript/097-CountBackwardsWithaForLoop.js +++ /dev/null @@ -1,6 +0,0 @@ -// Setup -var myArray = []; -for (var i = 9; i > 0; i -= 2) { - myArray.push(i); -} -// Only change code below this line \ No newline at end of file diff --git a/Basic JavaScript/098-IterateThroughanArraywithaForLoop.js b/Basic JavaScript/098-IterateThroughanArraywithaForLoop.js deleted file mode 100644 index 87104df..0000000 --- a/Basic JavaScript/098-IterateThroughanArraywithaForLoop.js +++ /dev/null @@ -1,7 +0,0 @@ -// Setup -var myArr = [ 2, 3, 4, 5, 6]; -var total=0; -for( var i=0;i 0 ? "positive": num < 0 ? "negative": "zero"; -} - -checkSign(10); \ No newline at end of file diff --git a/Basic JavaScript/110-UseRecursiontoCreateaCountdown.js b/Basic JavaScript/110-UseRecursiontoCreateaCountdown.js deleted file mode 100644 index ec6a430..0000000 --- a/Basic JavaScript/110-UseRecursiontoCreateaCountdown.js +++ /dev/null @@ -1,12 +0,0 @@ -// Only change code below this line -function countdown(n){ - if (n < 1) { - return []; - } - else { - const arr = countdown(n - 1); - arr.unshift(n); - return arr; - } -} -// Only change code above this line \ No newline at end of file diff --git a/Basic JavaScript/111-UseRecursiontoCreateaRangeofNumbers.js b/Basic JavaScript/111-UseRecursiontoCreateaRangeofNumbers.js deleted file mode 100644 index 2548429..0000000 --- a/Basic JavaScript/111-UseRecursiontoCreateaRangeofNumbers.js +++ /dev/null @@ -1,10 +0,0 @@ -function rangeOfNumbers(startNum, endNum) { - if (endNum - startNum === 0) { - return [startNum]; - } - else{ - var numbers = rangeOfNumbers(startNum, endNum - 1); - numbers.push(endNum); - return numbers; - } -}; \ No newline at end of file diff --git a/Basic JavaScript/112-DeclareaReadOnlyVariablewiththeconstKeyword.js b/Basic JavaScript/112-DeclareaReadOnlyVariablewiththeconstKeyword.js deleted file mode 100644 index 623a744..0000000 --- a/Basic JavaScript/112-DeclareaReadOnlyVariablewiththeconstKeyword.js +++ /dev/null @@ -1,5 +0,0 @@ -const FCC = "freeCodeCamp"; -let fact = "is cool!"; - -fact = "is awesome!"; -console.log(FCC, fact); \ No newline at end of file diff --git a/Basic JavaScript/113-ExploreDifferencesBetweenthevarandletKeywords.js b/Basic JavaScript/113-ExploreDifferencesBetweenthevarandletKeywords.js deleted file mode 100644 index 6516873..0000000 --- a/Basic JavaScript/113-ExploreDifferencesBetweenthevarandletKeywords.js +++ /dev/null @@ -1,2 +0,0 @@ -let catName = "Oliver"; -let catSound = "Meow!"; \ No newline at end of file diff --git a/Basic JavaScript/rename.sh b/Basic JavaScript/rename.sh deleted file mode 100755 index 0386c34..0000000 --- a/Basic JavaScript/rename.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -for file in *.js; do - # Extract the filename without the extension - filename="${file%.*}" - - # Extract the extension of the file - extension="${file##*.}" - - # Check if the filename starts with a number - if [[ $filename =~ ^[0-9]+ ]]; then - # Add '0' at the start of the filename - new_filename="0$filename" - else - # If the filename doesn't start with a number, keep it as it is - new_filename="$filename" - fi - - # Add the extension back to the filename - new_filename="$new_filename.$extension" - - # Rename the file - mv "$file" "$new_filename" -done