Skip to content

Latest commit

 

History

History
65 lines (56 loc) · 5.97 KB

File metadata and controls

65 lines (56 loc) · 5.97 KB

Project: 0x12. JavaScript - Warm up

This directory contains introductory projects focused on understanding the basics of JavaScript. The tasks cover fundamental concepts such as variables, data types, operators, control flow, functions, and basic file operations.

Resources

Read or watch

Learning Objectives

General

  • Why JavaScript programming is amazing
  • How to run a JavaScript script
  • How to create variables and constants
  • What are differences between var, const and let
  • What are all the data types available in JavaScript
  • How to use the if, if ... else statements
  • How to use comments
  • How to affect values to variables
  • How to use while and for loops
  • How to use break and continue statements
  • What is a function and how do you use functions
  • What does a function that does not use any return statement return
  • Scope of variables
  • What are the arithmetic operators and how to use them
  • How to manipulate dictionary
  • How to import a file

Tasks

Task File Description
0. First constant, first print 0-javascript_is_amazing.js Write a script that prints “JavaScript is amazing”.
1. 3 languages 1-multi_languages.js Write a script that prints 3 lines: “C is fun”, “Python is cool”, and “JavaScript is amazing”.
2. Arguments 2-arguments.js Write a script that prints a message depending on the number of arguments passed.
3. Value of my argument 3-value_argument.js Write a script that prints the first argument passed to it.
4. Create a sentence 4-concat.js Write a script that prints two arguments passed to it, in the following format: “ is ”.
5. An Integer 5-to_integer.js Write a script that prints “My number: ” if the first argument can be converted to an integer.
6. Loop to languages 6-multi_languages_loop.js Write a script that prints 3 lines using an array of strings and a loop.
7. I love C 7-multi_c.js Write a script that prints “C is fun” x times.
8. Square 8-square.js Write a script that prints a square.
9. Add 9-add.js Write a script that prints the addition of 2 integers.
10. Factorial 10-factorial.js Write a script that computes and prints a factorial.
11. Second biggest! 11-second_biggest.js Write a script that searches the second biggest integer in the list of arguments.
12. Object 12-object.js Update a script to replace the value 12 with 89.
13. Add file 13-add.js Write a function that returns the addition of 2 integers.
14. Const or not const 100-let_me_const.js Write a script that modifies the value of myVar to 333.
15. Call me Moby 101-call_me_moby.js Write a function that executes x times a function.
16. Add me maybe 102-add_me_maybe.js Write a function that increments and calls a function.
17. Increment object 103-object_fct.js Update a script by adding a new function incr that increments the integer value.